"Noel Wade" <[EMAIL PROTECTED]> a �crit dans le message news:
[EMAIL PROTECTED]
> Thanks - I understand that method; but I'm really looking for a way to
pass
> them without them being visible / mucking up the URL line with a buncha
> stuff...
(Note that even with a post, the data aren't really hidden : they are in the
http content.)
>So I have a page that processes information and then "echo"s out a redirect
>that looks like this:
><META HTTP-EQUIV="REFRESH" CONTENT="4; URL=<? echo $url ?>;">
If you can't call your page with a "real" post (a form submitted), it would
be possible to simulate it with this function (from Rasmus Lerdorf, AFAIK) :
function PostToHost($host, $path, $data_to_send) {
$fp = fsockopen($host,80);
fputs($fp, "POST $path HTTP/1.1\n");
fputs($fp, "Host: $host\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\n");
fputs($fp, "Content-length: ".strlen($data_to_send)."\n");
fputs($fp, "Connection: close\n\n");
fputs($fp, $data_to_send);
while(!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
with $data_to_send = "formfield1=myfieldvalue1&formfield2=myfieldvalue2";
Otherwise, easier, couldn't you use sessions ? you would hide your $url into
$_SESSION['url']
Regards,
Philippe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php