[FX.php List] Returning calculated fields after a new record
submission
Joel Shapiro
jsfmp at earthlink.net
Mon Sep 8 14:26:10 MDT 2008
Hi Josh
If Duration is a calc field in FMP, then you're not POSTing it with
the submission, are you? I think you're looking for the FM field to
return, off of the layout and from your FMEdit or FMNew results.
Also, you could just calculate Duration within PHP based on the
POSTed start and end times.
HTH,
-Joel
On Sep 8, 2008, at 1:13 PM, Josh Shrier wrote:
> I have a form which the user fills out as a submission request. I
> want the results page to display all the entered information from
> the form as well as calculation results generated in the database
> after the submission. The information entered on the form displayed
> fine on the results, however the calculated results did not display.
>
>
>
> For example:
>
>
>
> The user enters start and end time and I want to results page to
> display the duration time which is end time- start time. On the
> results page I have it shows up blank.
>
>
>
> I used $Duration=$_POST['Duration']; as the variable
>
>
>
> Then in the table I attempted to display like this:
>
>
>
> <tr>
>
> <td>Duration</td>
>
> <td><?php echo $Duration; ?>
>
> </td>
>
>
>
>
>
> I don’t know why it doesn’t work, please help.
>
>
>
> -Josh Shrier
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list