Hi Folks,
I tried the codes to send information from one page to another with the
session start and session register. It's working great.
Here is the sample:
form 1:
session_start();
if (!session_is_register("sess_array") {
session_register("sess_array");
}
<form action="processForm1.php" method="post">
<input name="var1">
<input name="var2">
</form>
processForm1:
session_start();
foreach ($HTTP_POST_VARS as $key=>$value) {
$sess_array[$key] = $value;
}
header("location: form2.php");
exit;
form2.php
session_start();
<tr>
<td>Value from previous page<td>
<td><?=$sess_array[var1]?></td>
</tr>
<tr>
<td>Value from previous page<td>
<td><?=$sess_array[var2?></td>
</tr>
With Netscape, they work fine. Unfortunately, there's a problem with
Internet Explorer. If I hit the go back button, all the information are
gone. Then, I put the echo for the values on all the forms so the
values
stay. Now, the other problem come. I can't reset the forms if I put
echo
for the values and even if I refresh the page, the values are still
hanging there.
Here is the sample of my code:
<input type=text name=var1 value="<? echo $sess_array[var1]; ?>
Can anyone help me?
Thanks in advance.
Mike