Re: how to process URL parameers

From: Date: Fri, 05 Apr 2002 15:00:28 +0000
Subject: Re: how to process URL parameers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91717@lists.php.net to get a copy of this message
On Friday, April 5, 2002, at 09:54 AM, Wo Chang wrote:
Sorry to trouble you with this simple question! if I have this php code: echo "<a href=http://abc.com/test.php?xyz>try</a>"; how would I process the xyz from test.php?
It needs to be a name/value pair, like this: echo "<a href='http://abc.com/test.php?name=value'>try</a>"; Most people do it like this, letting them put a PHP variable in there: echo "<a href=\"http://abc.com/test.php?variablename=$php_variable\">try</a>"; or if you don't like to use escaped doublequotes, try echo '<a href="http://abc.com/test.php?variablename=' . $php_variable . '">try</a>'; Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#91717) next »