Re: QuickForm basics
| From: | Alexey Borzov | Date: | Wed, 01 Oct 2003 15:54:30 +0000 |
| Subject: | Re: QuickForm basics | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8191@lists.php.net to get a copy of this message | ||
Hi!
Keith Pettit wrote:
So from what everybody is telling me I can create the form and submit it with no error checking, or I get error checking and can't submit the data anywhere unless I do a if ($form->validate()) { header('Location: client.php?var1=$var1&foo=$bar'); } and resend all the variables I want to go to the next form. I understand that the forms needs to submit to itself in order to provide the error checking (smart idea btw) but I would think that you should just be able to declare in the HTML_QuickForm or the submit button or somewhere to do the header() redirect thing with all the form variables if it's vaildated. That would seem to save alot of coding.If you do a "header() redirect thing with all the form variables" then you need to re-validate all the stuff you pass this way. Or else this will be a gaping security hole.