Using HTML_Quickform with passed parameters
| From: | Keith Edmunds | Date: | Mon, 28 Jul 2003 21:29:57 +0000 |
| Subject: | Using HTML_Quickform with passed parameters | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-6879@lists.php.net to get a copy of this message | ||
I'm trying to use HTML_Quickform, and the code is something like:
===================================
require_once ("HTML/QuickForm.php");
$form = new HTML_QuickForm('frmTest', 'get');
$form->addElement...
if ($form->validate()) {
$form->freeze();
$form->process('xxxxxx', false);
}
===================================
Problem I had was that the form kept being validated on first
run-through of the above code. I eventually found the reason is because
the URL used to run that code has two parameters passed to it, and the
validate method thinks this means the form has been submitted.
Is there any easy way around this?
Thanks