On page 1 called "employer.php" I start a session, then I have the viewer fill out a form field.
One form example is
tr><td><i>Current Employers Name:<input class=textbox type=text size=35 maxlength=35 name=L113 value=""></td></tr>
</i><br>
I post this to a new page called "income.php"
On "income.php" I first start a session then I register the variable like so:
/ Get the user's input from the form
$Employers_name = $_POST['L113'];
// Create a new Session Value
session_register('L113');
// Register the input with the value
$_SESSION['L113'] = $Employers Name;
then I extract the variable for the message, like this:
Employe Name= <strong><? echo $_SESSION['L113']; ?></strong><br />
I have sixteen pages for this form so I am repeating the above at least 100 times.
Is there an easier way using "each key=>value"?
If so please give me an example. Or if I'm doing it right, let me know as well.
By the way, my method works, I'm just looking for a simpler solution.
Thanks