Remembering form entries in IE

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
citizen_cain
Forum Newbie
Posts: 7
Joined: Fri Jun 13, 2003 1:38 pm

Remembering form entries in IE

Post 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
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post 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
citizen_cain
Forum Newbie
Posts: 7
Joined: Fri Jun 13, 2003 1:38 pm

Post by citizen_cain »

thought about that, but I still want to find that IE solution. It was reportedly a bug in IE6
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

are you referring to this?

viewtopic.php?p=36540#36540
citizen_cain
Forum Newbie
Posts: 7
Joined: Fri Jun 13, 2003 1:38 pm

Post by citizen_cain »

unfortunately not. See, I am not using session variables here at all.
$_POST["whatever"] is all I use
Post Reply