[nycphp-talk] handling forms (relative newbie)
Aaron Fischer
agfische at email.smith.edu
Thu Oct 2 15:59:57 EDT 2003
That works, thanks!
One thing I am wondering is why one needs to use the line:
$_POST = $_SESSION['_POST'];
If $_SESSION now has the array stored, it seems that this should work:
echo $_SESSION['first_name'];
?
-Aaron
On Thursday, October 2, 2003, at 03:26 pm, David Rydell wrote:
> session_start();
> session_register('_POST');
> $_SESSION['_POST'] = $_POST;
> header ("Location: session_results.php");
> exit;
>
> Session Results page:
>
> session_start();
> $_POST = $_SESSION['_POST'];
>
> echo $_POST['first_name'];
> echo $_POST['last_name'];
More information about the talk
mailing list