AW: [PEAR] Handeling more then one Form on a page with QF
| From: | Mirco Blitz | Date: | Wed, 02 Feb 2005 12:46:14 +0000 |
| Subject: | AW: [PEAR] Handeling more then one Form on a page with QF | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17330@lists.php.net to get a copy of this message | ||
Hi,
Thanks for that idea.
Greetings
Mirco
-----Ursprüngliche Nachricht-----
Von: Arne Gellhaus [mailto:arne.gellhaus@gellhaus.de]
Gesendet: Mittwoch, 2. Februar 2005 12:35
An: pear-general@lists.php.net
Cc: Mirco Blitz
Betreff: Re: [PEAR] Handeling more then one Form on a page with QF
Mirco Blitz wrote:
>Is there a way to handle more than one Form on a page with QF.
>
>
I use the following method to accomplish that:
$qf1->addElement('hidden', 'action', 'search');
$qf2->addElement('hidden',
'action', 'something');
if (($_REQUEST['action'] == 'search') && ($qf1->validate()) { }
if (($_REQUEST['action'] == 'something') && ($qf2->validate()) { }
i hope you see what i mean.
Arne
--
PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php