[phplib] Basic Sessions handling From: Bence Hoyle (bhoyle <email protected>)
Date: 09/28/00

I have a simple registration form that has several sections. All sections
are actually the same php page using a step variable to decide what is being
displayed:

For example:

<? page_open(array("sess" => "my_Session")); ?>
<html>
.......
<body>
<form>
....
<?
switch($step){
    Case 1:
        show these form elements
    Case 2:
        show these...
}
?>
</form>
....
<? page_close(); ?>

This works fine. Form variables are read into an array and validated. They
are then registered on each pass.

My problem is when I change the form action in the final stage, to go to a
SSL page for credit card validation. I cannot get the array containing the
values to pass to the form and back again. What I want to be able to do is
write the registration to the database if payment was successful. I am using
a hidden_session() command throughout the form.

I think I need to understand how to recall the session data from the
sessions database. Then, maybe I can leave for validation (without my
variables) and come back if successful and recall them. Any help or guidance
appreciated.

I have repeatedly read the documentation, which I am sure is adequate. But
it's just not clicking.

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>