> <input type=text size=20 name=rsname <?php if($_SESSION['rfname'] != > ''){print "value='{$_SESSION['rfname']}'';}> > > but I just get a ? in the value field, not the name.
Yeah there's a good reason for that. You're not ending yoiur PHP tag! :-P Joking aside you're on the right track. This IS the way to do it. You should never rely on the browsers cache to re-input form values in a multi-page form. Allow me to clean that up for you a bit.. <input type="text" size="20" name="rsname" value="<? if (!empty($_SESSION['rsname'])) echo $_SESSION['rsname'];?>"> Hope that helps. Good luck. -Kevin ----- Original Message ----- From: "Andre Dubuc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 26, 2002 12:29 PM Subject: [PHP] IE Problems: disappearing text with 'Back' button > A few people using IE have complained that when they click the 'Back' button > to edit their registration form, all info is lost and they're presented with > a blank form. > > I've read archives on this, and I really don't know what to do. The referring > page starts with > > <?php session_start() ob_start(); ?> and I know the session variables are > passed. The referring page is headered to the check page where users would > click 'Back' > > The session variables are there too. Is there some way that I could: > > (a) Prevent the 'blank-form-syndrome' > > or > > (b) Encode the <input type=text size=20 name=rfname> so that the name is > filled in - I've tried: > > <input type=text size=20 name=rsname <?php if($_SESSION['rfname'] != > ''){print "value='{$_SESSION['rfname']}'';}> > > but I just get a ? in the value field, not the name. > > or > > (c) As much as hate to use it, javascript. I've coded everything without it, > so only if I can't accomplish a reasonable approximation of 'Back' in a php > hack. > > or > > (d)I read in one of the last archived messages about a workaround. After the > user clicks 'Back' and is confronted with a now-virgin form, all they have > to do is click 'Refresh' in IE. Question is, does IE have a 'Refresh' button, > and does this, in fact, work? I have no way of testing this since I only have > Linux running. So, if some kind soul could verify whether this is true, it > would save me a whole pile of coding! > > I would be very grateful for any suggestions on to retrieve hyper-lost data > input using php. > > Tia, Andre > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php