is it posiible to tranasfer all post variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

is it posiible to tranasfer all post variable

Post by rajan »

is it posiible to tranasfer all post variable to other page using single line of code? if yes then how can?
User avatar
chrys
Forum Contributor
Posts: 118
Joined: Tue Oct 04, 2005 9:41 am
Location: West Roxbury, MA (Boston)

Post 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.
Post Reply