Re: HTML_QuickForm example
| From: | Bertrand Mansion | Date: | Mon, 06 Mar 2006 19:38:51 +0000 |
| Subject: | Re: HTML_QuickForm example | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-41679@lists.php.net to get a copy of this message | ||
Atif Khan wrote:
>I am still having problems with HTML_QuickForm.
>
>I am trying to post to a different page
>after validating the form
>
>If I add a method
>
>$Form = new HTML_QuickForm("Form1", "POST", 'test.html');
>
>It seems that it did not like validating the form and
>going to the test.html page.
>
>how can I make sure that the page validates it first before pushing
>to the page.
>
>Mark posted stating
>
>" The form target needs to be script where
>the form is defined. After validating the form, you can redirect to your
>test.html (or include it)."
>
>Is there an example that I can take a look at.
I think Mark meant use:
header('Location: http://www.example.com/test.html');
once your form is validated in the script containing the QF object.
This is anyway the best way to deal with form otherwise back and reload browser
buttons make you repost the form.
--
Bertrand Mansion
http://www.mamasam.com - creative internet solutions
http://golgote.freeflux.net - blog