Re: Redirecting with the POST method.

From: Date: Fri, 28 Jun 2002 18:25:19 +0000
Subject: Re: Redirecting with the POST method.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104403@lists.php.net to get a copy of this message
Assuming that redirection and target script are both on your server... First in your redirection script: <?php session_start(); ... $password = ... $login = ... session_register('password'); session_register('login'); header("Location http://www.domain.net/script.php"); ?> And in your target script: <?php session_start() ... $password = $_SESSION['password']; $login = $_SESSION['login']; ... ?> I hope this will help... > OK, curl requires me to re-compile PHP. However you mentioned something > about sessions.. can you elaborate more on that? How can i use sessions > for this? > > > > Iam trying to redirect people like this: > > > > > > header("Location http://www.domain.net/script.php?î:¬« e > > > ž|ò¾í<­ > > > fsi=dgfs&login=password=refergf4";) > > > > > > The problem is this redirection is being done with the GET method, > so > > > all query string will be shown. How can I make this redirection use > the > > > POST method?

« previous php.general (#104403) next »