Re: 2 questions

From: Date: Wed, 07 Mar 2007 23:15:07 +0000
Subject: Re: 2 questions
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26769@lists.php.net to get a copy of this message
Le 7 mars 07 à 21:26, Tiron Adrian a écrit :
2) All the examples i've seen using Quickform validate the form on the same page,because the actions is the same page. But what if i send the data to another page? How can i validate the form there. I mean if i have a $form object created as above when i go to another page(the action page) this object is destroyed right?should i use sessions???I hope you understood what i was trying to say...Thanks!
If you send to another page, there is no way to know what is to be validated. Just do a "header('Location:');exit;" once your validation is done. This is a better way to build web applications anyway (IMO) because you don't have the resubmit warning in browsers if user hit the back button.

« previous php.pear.general (#26769) next »