POSTing values to other page

From: Date: Sun, 13 May 2007 14:52:32 +0000
Subject: POSTing values to other page
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-43581@lists.php.net to get a copy of this message
I am trying to send POST values from one page to another, they are too long to be handled by GET. page1.php page2.php I've tried in page1 $str="?"; foreach($_POST as $name=>$value) {
       $str.=$name."=".$value."&";
} header("Location: http://host/path/page2.php$str"); gives: *Warning*: Header may not contain more than a single header, new line detected. in */path/page1.php* on line *13* There must be a better way of doing this and it must be pretty well known. Any ideas? John

« previous php.db (#43581) next »