Page 1 of 1

is it posiible to tranasfer all post variable

Posted: Thu Oct 13, 2005 3:02 pm
by rajan
is it posiible to tranasfer all post variable to other page using single line of code? if yes then how can?

Posted: Thu Oct 13, 2005 3:12 pm
by chrys
first page:

session_start();

$_SESSION['post'] = $_POST;

next page:

session_start();

$_POST = $_SESSION['post'];


Note: session_start() must go at the top of the page before any output.