Daniel Brown wrote:
On Thu, Jul 10, 2008 at 2:32 PM, Richard Heyes <[EMAIL PROTECTED]> wrote:
1. Use the query string. Eg
header('Location: http://www.xxx.com?name=value&name2=value2');
That's GET, not POST, as the subject requests. ;-P
2. Use sessions
.... if you're not trying to POST the data and are staying within
the same domain on the same server. ;-P
With all that in mind, if you must POST then you can do something like this:
$data = addslashes("yourvar=$yourdata&secondvar=$moredata"); //just like get
header('POST /some/path/to/somefile.php HTTP/1.1');
header('Host: www.example.com');
header("Content-Type: application/x-www-form-urlencoded");
header("Content-Length: " . strlen($data));
header($data);
-Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php