Friendly QuickForms
| From: | Fred | Date: | Tue, 10 Dec 2002 08:25:59 +0000 |
| Subject: | Friendly QuickForms | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-2933@lists.php.net to get a copy of this message | ||
I have been able to do some really great things with quickforms, but I had to make some changes to the source class to get them to act friendly. The release distro (2.5) makes it impossible to have more than one form on a page, or for that matter to have any additional post or get variables in the same page without undesirable results (i.e. the form tries to validate itself with variables which were never intended for it.
I have overcome this myself by giving a distinct value to the submit button of each form and requiring that such a value be present before assigning all $_GET or $_POST variables to $_SubmitValues. This could also be done with hidden form fields. For what it is worth, I think it would be nice to see this change made in the official sources.
Fred H.