Re: how to process URL parameers
| From: | Wo Chang | Date: | Fri, 05 Apr 2002 15:18:55 +0000 |
| Subject: | Re: how to process URL parameers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91721@lists.php.net to get a copy of this message | ||
Dear PHPers,
Thanks for the extra hands!
They all work!!
--Wo
----- Original Message -----
From: "Erik Price" <pricee@hhbrown.com>
To: "Wo Chang" <wchang@nist.gov>
Cc: <php-general@lists.php.net>
Sent: Friday, April 05, 2002 10:00 AM
Subject: Re: [PHP] how to process URL parameers
>
> 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