Page 1 of 1

passing hidden variables using directs

Posted: Tue May 14, 2002 3:30 pm
by weful
I'm trying to do something like this:

ob_end_clean();
header("Location: file.php?variable=whatever");
exit;

The only thing is that I want to pass the variable but NOT pass them through the URL (hidden), how do I do this?

Thanks

Tim
8)

Posted: Tue May 14, 2002 11:39 pm
by jason
Using header(), you can't. You would essentially have to do a POST to the page, which is probably more trouble than it's worth.

Or, you could simply store the variable in a session variable, and use sessions.

Re: passing hidden variables using directs

Posted: Fri May 17, 2002 9:18 am
by cwcollins
or use :evil: cookies :evil: .