Re: POSTing values to other page
| From: | Onochie Anyanetu | Date: | Sun, 13 May 2007 21:38:08 +0000 |
| Subject: | Re: POSTing values to other page | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43583@lists.php.net to get a copy of this message | ||
Why not put them into session variables? Have you tried that?
On 5/13/07, ioannes <ioannes@btinternet.com> wrote:
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
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php