Re: header question

From: Date: Wed, 11 Sep 2002 23:33:33 +0000
Subject: Re: header question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-116058@lists.php.net to get a copy of this message
You should always use a full URL in a Location header. Though browsers may handle improper uses of this header, it is still a bad practice. Happy hacking. Chris Krzysztof Dziekiewicz wrote:
On Wed, 11 Sep 2002, Meltem Demirkus wrote:
I want to know if there is any way to send data in
header("Location:login.php") .I know how to send like this       <a
href=\"login.php?id=$ID\"> but I need to use header and I dont know howto do this?...
     
header( "Location: login.php?id=${ID}" );
What for {} ? Rather: header( "Location: login.php?id=$ID" );


« previous php.general (#116058) next »