NYCPHP Meetup

NYPHP.org

[nycphp-talk] html php form problem

harvey list at harveyk.com
Thu Feb 24 15:14:55 EST 2005


I think you have it backwards.

"The directive CACHE-CONTROL:NO-CACHE indicates cached information should 
not be used and instead requests should be forwarded to the origin server."

But even if you fix that, I don't think it will solve your problem.

I think you can create a "process.php" page that takes the "form.php" data, 
processes it, and then returns to the form page. The form page should now 
be considered a "new" page and refreshing should not resubmit the old data.

Or you could have a hidden timestamp be submitted and compare posts, not 
processing if the questionable post is less than X seconds after the last post.



At 02:54 PM 2/24/2005, you wrote:

>Hello everyone:
>
>I've been searching for the solution to my problem. I do not want a form 
>to be
>resubmitted when i refresh a page.
>i use this in the <head> portion of the html page:
>
><META Http-Equiv="Cache-Control" Content="no-cache">
><META Http-Equiv="Pragma" Content="no-cache">
><META Http-Equiv="Expires" Content="0">
>
>But i can't get this to work. Can anyone tell me if i need to use 
>something in
>php as well in order for a refresh to be done without re-submitting a form.
>
>Thank you.
>Henry
>_______________________________________________
>New York PHP Talk Mailing List
>AMP Technology
>Supporting Apache, MySQL and PHP
>http://lists.nyphp.org/mailman/listinfo/talk
>http://www.nyphp.org




More information about the talk mailing list