QuickForm(_Controller): Conditional Forms based on rule match

From: Date: Wed, 22 Feb 2006 12:44:53 +0000
Subject: QuickForm(_Controller): Conditional Forms based on rule match
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23087@lists.php.net to get a copy of this message
Hi, I'm trying to create a whois form with QuickForm / QuickForm_Controller (I need multipage forms since the whois form is supposed to lead to the order form for web hosting services). So far, I have implemented the actual whois as a callback function to a wrapper around Net::Whois, so I can tell when a domain is taken or otherwise unavailable. However, in this case I want to change the form to display alternative domains (which have to be whois'ed on the fly too) and a different "next" action for transferring the domain. I have tried to implement this using a session variable set by the whois callback function, but this only works after submitting the first step of the form *twice*. Is there a "nice" way of implementing a conditional change of a form after a specific rule has matched during the validate() method? Regards, --ck -- http://www.de-punkt.de [ chris@de-punkt.de ] http://www.stormix.de PHP-Anwendungen sind gefährdet! SQL-Injection, XSS, Session-Angriffe, CSRF, Commandshells, Response Splitting,... böhmische Dörfer? Dann gleich "PHP-Sicherheit" direkt beim Verlag vorbestellen! http://www.php-sicherheit.de/

« previous php.pear.general (#23087) next »