RE: [PEAR] Clearing a QuickForm after Submit

From: Date: Wed, 07 Jan 2004 10:46:12 +0000
Subject: RE: [PEAR] Clearing a QuickForm after Submit
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10017@lists.php.net to get a copy of this message
> -----Original Message----- > From: Alex Housley [mailto:alexhousley@dsl.pipex.com] > > When I submit a form using QuickForm all of the data is > automatically set as > the default value when the form is redisplayed. > > Is there any way to clear the form? I am sending the form > values to be > updated in $form->validate() Possibly try assigning an empty array to the $_POST super global before you generate the Quickform again. You could add this code in to your single script with a check such as: if(stristr($_SERVER['HTTP_REFERER'], $_SERVER["PHP_SELF"])) { ..blank posted variables... } Regards, Mike C. ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________

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