Re: HTML_QuickForm example
| From: | Justin Patrin | Date: | Mon, 06 Mar 2006 19:27:40 +0000 |
| Subject: | Re: HTML_QuickForm example | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-41678@lists.php.net to get a copy of this message | ||
On 3/6/06, Atif Khan <wequar98@gmail.com> 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.
>
If you post to a different page then your form generating script
obviously will not be able to validate it as the POST goes to the
different page instead of the form script.
Try:
include('test.html');
Or simply copy the html page into your PHP script.
--
Justin Patrin