Re: resettings HTML Quickform elemetns

From: Date: Tue, 28 Jun 2005 16:52:59 +0000
Subject: Re: resettings HTML Quickform elemetns
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19808@lists.php.net to get a copy of this message
On Tuesday 28 June 2005 17:44, Justin Patrin wrote: > That is, indeed, a hack as you're playing with internal vars. Then > again since the QF devs don't seem to want to add functions to access > these properties... Indeed, it's not my normal standard coding style to access private vars like that - honest ;) > I would suggest redirecting (to clear POST) and then "re-displaying" > your form. I tend to do a header('Location: ') after every form > submission anyway to make sure that the POST data isn't in the browser > history. Unfortunately, in this case that's not an option. I usually do do what you suggest, but in this case due to how the form is being used, this isn't an option. I would advise a change to the API to allowed a HTML_QF::getElements() to return an array of elements that can then be manipulated. Kind Regards, -- Ian P. Christian ~ http://pookey.co.uk

Attachment: [application/pgp-signature]
« previous php.pear.general (#19808) next »