Re: [PHP-DB] POSTing values to other page

2007-05-13 Thread Onochie Anyanetu

Why not put them into session variables? Have you tried that?

On 5/13/07, ioannes [EMAIL PROTECTED] 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




Re: [PHP-DB] POSTing values to other page

2007-05-13 Thread Chris

ioannes wrote:
I am trying to send POST values from one page to another, they are too 
long to be handled by GET.


Either use the session or use curl (http://www.php.net/curl)

--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php