Dear PHP Group,
I have two forms that are used to collect user information. The first one
takes user inputted values such as fullname, city, address etc. I want these
values to display in the second form when it is called. Both forms are .htm
files that call themselves when the submit button is press via the following
command in each form:
<form method="post" action="<?php $server['PHP_SELF']?>">
The server is set to parse .htm files as php. Everything else is working
fine and all the validation checks are working fine. Based on certain
validation checks that are within the form php code, the user is either left
on the input form page to correct errors or if there are no errors the user
is passed to the next form via a Java call....
<script language="javascript">
<!--
location.replace("order2.htm");
-->
</script>
I have even put a session_write_close() before the redirect hoping this
would fix the problem of not displaying the inputted values from the first
form into the second form.
The server value for global variables is set to ON.
In the second form I have tried to display the values from the first form
after the POST using the following three methods:
$fullname;
echo $HTTP_POST_VARS['fullname'];
echo $_POST['fullname'];
Nothing works...
Any ideas why I cannot get the values from the first form to display on the
second form?
Thanks in advance!