Page 1 of 1

Remembering form entries in IE

Posted: Tue Jul 08, 2003 9:21 am
by citizen_cain
Hi,

I came across the solution for this problem a while ago, but I can't find it anymore, so I am hoping somebody here will know:

Anyway, the following happens:

I have a form page, which users submit onceit is filled out. However, I have created an overview page, which basically displays all the info entered before you finally submit the form. The problem is that once they are on the review page and see something that they would like to change and hit the BACK button ... BOOM all entries on the initial form page are erased.

Please help

Thanx

Posted: Tue Jul 08, 2003 10:19 am
by JPlush76
well depending on how much traffic you get and how many fields you have you could make each form element a session variable and just do a

if(isset($_SESSION['var']))
{
$value = $_SESSION['var'];
} else {
$value = '';
}

then just echo $value in your form elements value field

Posted: Tue Jul 08, 2003 10:21 am
by citizen_cain
thought about that, but I still want to find that IE solution. It was reportedly a bug in IE6

Posted: Tue Jul 08, 2003 1:07 pm
by DuFF
are you referring to this?

viewtopic.php?p=36540#36540

Posted: Tue Jul 08, 2003 1:15 pm
by citizen_cain
unfortunately not. See, I am not using session variables here at all.
$_POST["whatever"] is all I use