[FX.php List] FX Repost
Steve Hannah
shannah at sfu.ca
Mon Apr 24 11:56:25 MDT 2006
In general it is good practice to only use POST requests when records
will be modified by the request. Otherwise GET requests should be
used. To avoid the case where a POST request is used to return a
result set, I will generally always use GET requests to display
information, and have scripts that use POST to modify information
simply forward (i.e. header('Location: /path/to/results.php') ) to
the GET request to show the results. With this approach, repost
becomes a non-issue.
Best regards
Steve Hannah
On 24-Apr-06, at 10:45 AM, gerry.charest at agfa.com wrote:
> I'm in the process of designing a site with PHP, FX and FMP. I
> recall in the days of CDML you could have repost issues (duplicate
> records) when a user pressed the back or refresh button. Are there
> similar issues with PHP and FX? Is there a standardized method to
> avoid repost if the user refreshes page that would create a record?
>
> Gerry Charest
> Agfa Corporation
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
----------------------------------------
Steve Hannah
Web Services Developer
Faculty of Applied Sciences
Simon Fraser University
shannah at sfu.ca
604-268-7228
Homepage: http://www.sjhannah.com
More information about the FX.php_List
mailing list