RE: [PHP] How to POST a HTML-page with the header function

From: Date: Wed, 13 Feb 2002 15:34:14 +0000
Subject: RE: [PHP] How to POST a HTML-page with the header function
Groups: php.general 
Request: Send a blank email to php-general+get-84588@lists.php.net to get a copy of this message
something like: setcookie("cookiename","cookievalue"); header( "Location: $mail_error_page"); exit; in mail_error_page: <?php $mycookie = $HTTP_COOKIE_VARS['cookiename']; ?> The cookie will exist until the web browser is closed.. -----Original Message----- From: L. Hoeneveld [mailto:Hoeneveld@ict.tno.nl] Sent: Wednesday, February 13, 2002 9:30 AM To: Rick Emery Cc: php-general@lists.php.net Subject: Re: [PHP] How to POST a HTML-page with the header function I'll study on that. And in case you have an easy example for both suggested methods I am willing to receive that. We use the PHP-pages as external services and I wonder if a session-ID can be used then. But maybe a cookie is an idea... In any case thanks and regards, Léon Hoeneveld Rick Emery wrote: > Short answer: NO. > Because your method is the same as the GET method > > Use cookies or sessions to pass hidden variable values > > -----Original Message----- > From: L. Hoeneveld [mailto:Hoeneveld@ict.tno.nl] > Sent: Wednesday, February 13, 2002 3:05 AM > To: php-general@lists.php.net > Subject: [PHP] How to POST a HTML-page with the header function > > We use the header() function to display a html page like this: > > header("Location: $mail_error_page?CODE=$CODE"); > > But instead of showing the variable $CODE we would like to hide it. Just > like > when you POST variables to a HTML-page. Is there any way to do this? > > -- > Regards, > Léon Hoeneveld > The Netherlands > E-mail TNO: hoeneveld@ict.tno.nl > E-mail CMG: leon.hoeneveld@cmg.nl > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ____________________________________________________________________________ _________________ > This inbound message from KPN has been checked for all known viruses by KPN IV-Scan, powered by MessageLabs. > For further information visit: http://www.veiliginternet.nl > ____________________________________________________________________________ _________________

« previous php.general (#84588) next »