Re: QuickForm Validation
| From: | Wade Hovind | Date: | Tue, 15 Apr 2003 02:02:54 +0000 |
| Subject: | Re: QuickForm Validation | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4844@lists.php.net to get a copy of this message | ||
Still the same problem.
First form displays just fine. The 'verify' form with the next and back
work great....the first display of the second form shows validation errors
even though it's the first time being shown.
Wade
$currentForm[0] = 'form';
$currentForm[1] = 'form2';
// Here test if $currentForm[$_SESSION["step"] exists
include($currentForm[$_SESSION["step"]].'.php');
if(${$currentForm[$_SESSION["step"]]}->validate()) {
$_SESSION['step']++;
include($currentForm[$_SESSION["step"]].'.php');
}
${$currentForm[$_SESSION["step"]]}->display();