I am trying to start a session and to set each individual $_POST variable if it has been entered by the user of the form.
the first few lines of my php script code is as follows:
<?php
session_start() ;
foreach($POST as $key => $val)
{
$SESSION[$key] = $val;
}
Will this achieve it's aim? It does not appear to be working at the moment.
I then check each variable from the within the form using:
<input name="Name" type="text" value="<?php if(isset($SESSION['Name'])){
echo $SESSION['Name']; }?>" size="29">
Will this check the variable correctly?