In article <01041321314700.01991@localhost>,
[EMAIL PROTECTED] (Jordan Elver) wrote:
> Hi,
> I've got a multi page form and I'm using sessions to keep track of all the
> variables between the pages. SO I fill in page one of the form and add the
> variables to a session. Then I can go on completeing the rest etc.
>
> My problem is that I want my users to be able to go back to the pages they
> have already visited and edit the data (in the form) and then undate the
> variables in the session. But I can't update the session, so I thought if I
> called session_unregister and then session_register again then that would
> work, but it doesn't?
Just change the variable's value. For instance:
//$sess_var="old_val"
if($update==TRUE)
{
$sess_var="new_val";
echo $sess_var //"new_val"
}
else
{
echo $sess_var //"old_val"
}
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]