IE 'Back' Button problem + SELECT dropdowns
| From: | Andre Dubuc | Date: | Mon, 27 Jan 2003 16:36:50 +0000 |
| Subject: | IE 'Back' Button problem + SELECT dropdowns | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133255@lists.php.net to get a copy of this message | ||
Hi,
I've managed to get Windows IE to pick up on most of my $_SESSION variables
once a user clicks the 'Back' button using the following code in the base
form:
'value=<?php if(!empty($_SESSION['rfname'])) echo $_SESSION['rfname'];
?>'
However, when I try this approach for a muliple SELECT dropdown box that is
loaded by a 'require' statement, it doesn't pass the info. I've tried to
isolate the individual components:
<?php require("dobdod.fdd");
if(!empty($_PST['bday'])) echo $_POST['bday'];
if(!empty($_POST['bmonth'])) echo $_POST['bmonth'];
if(!empty($_POST['birth'])) echo $_POST['birth'];
if(!empty($_POST['dday'])) echo $_POST['dday'];
if(!empty($_POST['dmonth'])) echo $_POST['dmonth'];
if(!empty($_POST['death'])) echo $_POST['death'];
?>
Btw, the base form calls another form, which displays an error message. Once
the 'Back' button is clicked, the base form reappears. [I've also tried
putting a <?php . . . ?> around each if(!empty . . .); statement above with
same result.]
Any ideas what I'm doing wrong? I've been at this one for a couple of weeks,
and nothing seems top work. Is it possible to pass the info back to the base
form?
Tia,
Andre