Re: QuickForm2 validation

From: Date: Thu, 27 May 2010 08:26:30 +0000
Subject: Re: QuickForm2 validation
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30582@lists.php.net to get a copy of this message
Hi, On 27.05.2010 0:09, Php Developer wrote:
I'm wondering if there is a way to change dynamically the action of the post method. I had already an answer explaing how to do it in the constructor. But it would be a lot better if it is possible to do it for an already instantiated quickform2 object too. May be in the addDataSource function but in that case what would be the syntax?
If I understand correctly what you are trying to achieve: $form->setAttribute('action', 'new value'); See the API docs for HTML_Common2 package: http://pear.php.net/package/HTML_Common2/docs/2.0.0RC1/

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