Here is an example for setting up and extracting from sessions:
STEP (a) - Setting up:
// Step 1: Setting a name for our session.
session_name("user_details");
// Step 2: Starting Session.
session_start();
// Step 3: Register Session Variables
session_register(name);
session_register(street_address);
session_register(city);
session_register(state);
session_register(zip);
STEP (b) - Populating with date:
Just create a form with these session settings -- i.e.
<input type="text" name="name" size="30" maxlength="50">
-- and have the page submit to itself or to another page with these same session settings (as detailed above in step (a)).
STEP (c) - Extracting data:
again have the session settings from step (a) on the page, and simply enter
<? echo "$name" ?>
And you will have passed the variables using sessions.
Hope this helps.
Regards,
Charlie