RE: [PEAR] Form fields remembering previous values

From: Date: Wed, 10 Sep 2003 09:46:35 +0000
Subject: RE: [PEAR] Form fields remembering previous values
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7682@lists.php.net to get a copy of this message
Hi, Ah, crafty idea :) As a side effect I found an Internet Explorer specific feature in the <form> tag. Just add an attribute autocomplete="off" when your defining the form $form = new HTML_QuickForm('RegisterStep1', 'get', 'step2.php', '', array('autocomplete' => 'off')); Regards, Mike C. > -----Original Message----- > From: Rob Hutton [mailto:rob.hutton@comcast.net] > Sent: 09 September 2003 15:51 > To: mikeatwork@ukonline.co.uk; 'Graham Clarke'; 'PEAR General' > Subject: RE: [PEAR] Form fields remembering previous values > > > I think if you append a md5(rand()) to the URL as a > parameter, then it sees the URLs as different. You don't > even have to pay attention to them in the post, just generate > them when you present the form... > > > -----Original Message----- > > From: Mike Carter [mailto:mikeatwork@ukonline.co.uk] > > Sent: Tuesday, September 09, 2003 10:29 AM > > To: 'Graham Clarke'; 'PEAR General' > > Subject: RE: [PEAR] Form fields remembering previous values > > > > > > Hi Graham, > > > > I use meta tags in the header: > > <meta http-equiv="Pragma" content="no-cache"> > > <meta http-equiv="Cache-Control" content="private"> > > <meta http-equiv="Expires" content="-1"> > > > > However IE still remembers the values associated with that form. I > > think the post from Rob gave me a clue, Iexplorer bases its > form field > > history based on a webpage URL. Will have a look at that. > > > > Thanks anyway, > > > > > > Mike C. > > > > > -----Original Message----- > > > From: Graham Clarke [mailto:grahamc@53tech.com] > > > > > > try > > > $form->setConstants(); > > > OR > > > $form->setDefaults(); > > > > > > You can also set a HTML meta tag to expire the page immediately. > > > > > > hth > > > Graham > > > > > > At 09:37 AM 9/9/2003 -0400, Rob Hutton wrote: > > > > > > > > -----Original Message----- > > > > > From: Mike Carter [mailto:mikeatwork@ukonline.co.uk] > > > > > Sent: Tuesday, September 09, 2003 8:00 AM > > > > > To: PEAR General > > > > > Subject: [PEAR] Form fields remembering previous values > > > > > > > > > > > > > > > Hi, > > > > > > > > > > Does anybody know of a solution to stop Internet > Explorer from > > > > > remembering the values entered in form fields? > > > > > > > > > > > > >This is a function of the browser. You can use 1 time > URLs to work > > > >around this. > > > > > > > > > > > > > > Does having the page on https:// prevent > > > > > this? > > > > > > > >There is a setting in IE to enable or disable caching of > encrypted > > > >pages... > > > > > > > > > > > > > > > >Thanks, > > > >Rob > > > > > > > >-- > > > >PEAR General Mailing List (http://pear.php.net/) > > > >To unsubscribe, visit: > > > >http://www.php.net/unsub.php > > > > > > > > > Graham Clarke > > > GrahamC@53Tech.com > > > www.53Tech.com > > > 603.643.9955 > > > > > > -- > > > PEAR General Mailing List (http://pear.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > ______________________________________________________________________ > > __ > > 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 > > > ______________________________________________________________ > __________ > > > > -- > > PEAR General Mailing List (http://pear.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ________________________________________________________________________ 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 (#7682) next »