Re: php won't "process" forms anymore

From: Date: Wed, 01 May 2002 21:20:19 +0000
Subject: Re: php won't "process" forms anymore
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-13473@lists.php.net to get a copy of this message
On Wed, 1 May 2002 09:19:27 +0200 "Erik" <sky50637@skynet.be> wrote: > hi, > > when i have a page tht handles forms with php it doesn't work i don't get > any error message it just shows me the same page over and over again i even > added > error_reporting(15); at the top of the script no luck windows always shows > me the same page i may click submit a douzend of times it always show the > same > > any solution for this issue ? Are you, by any chance, using Internet Explorer 6? Because I had a similar problem. I spent a whole day trying to figure why some people was telling me that my forms wouldn't work with IE when the site worked perfectly for me in Opera 6 and IE 5.0 (the one that comes with Win2k). Then, I realized they all were using Windows XP, which comes with IE 6. So I tried my site with IE 6 and the problem was there... it seems that IE 6 caches pages a little too much (to make you believe it is faster maybe?). I tried adding some headers to make sure the browser didn't store the page in the cache, but it didn't work as expected. Then I tried something else: Since the script with the form was the same script that processed the form, it was calling itself with the ACTION parameter of the FORM tag, so, I randomly added a number at the end of the script name in the FORM tag, preceded by a question mark "?". So it would look like this: <FORM action="myscript.php?498676" method="POST"> That way, you can fool IE into thinking it is a different page so it actually sends the request to the server. I know it's not the best solution, but it works. Just a little note: this "problem" doesn't seem to exist in IE6 when you use ASP pages.... was it a simple error/mistake? I think not.... Rubén Gutiérrez

« previous php.windows (#13473) next »