Re: Re: Non-Cache in forms?

From: Date: Tue, 26 Mar 2002 04:00:43 +0000
Subject: Re: Re: Non-Cache in forms?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-90149@lists.php.net to get a copy of this message
On 25 Mar 2002 at 0:29, eric.coleman@zaireweb.com wrote: > yes, but i send them back to the previous page > and it shows the form... > > What would be a way around this? > ----- Original Message ----- > From: "David Robley" <robleyd@paradise.net.nz> > To: <php-general@lists.php.net> > Sent: Sunday, March 24, 2002 11:39 PM > Subject: [PHP] Re: Non-Cache in forms? > > > > In article <001801c1d38d$6b016eb0$0201a8c0@zaireweb>, > > eric.coleman@zaireweb.com says... > > > Alright, > > > > > > When I submit a form, and shoot out an error, such as "Please fill in > email address" and then send them back to the form, the form seems to be > blank... > > > > Why? What is happening that the form isn't keeping the > previously posted data? > > > > My error function looks like so > > > > > function crapout($msg, $hidden_msg = FASE) { > > echo($msg); > > > if($hidden_msg != "FALSE") { > > echo('<!-- ' . $hidden_msg . > ' -->'); > > > } > > exit; > > } > > > > Thanks, > > Eric Coleman > > > > > You are aware > that exit halts execution of the script? > > -- > David Robley > Temporary > Kiwi! > > Quod subigo farinam > > -- > PHP General Mailing List > (http://www.php.net/) > To unsubscribe, visit: > http://www.php.net/unsub.php > > > Please respond to the list as well, as you are more likely to get a timely and useful response that way. I notice that your error message is in HTML comment tags? Without seeing more of your code, it's a bit hard to tell. But you might try doing a view source and see if there is anything in the source that might assist. Otherwise, post more relevant parts of your code to the list. -- David Robley Temporary Kiwi! Quod subigo farinam "I want this statue to look like the Venus de Milo," said Tom disarmingly.

« previous php.general (#90149) next »