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


Reply via email to