For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2007 > Re: [PHP-DB] POSTing values to other page









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2007-05-13, 6:59 pm

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
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com