Re: Parse URL parameters
| From: | Gyozo Papp | Date: | Thu, 05 Jul 2001 09:19:38 +0000 |
| Subject: | Re: Parse URL parameters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56400@lists.php.net to get a copy of this message | ||
Hi,
read the manual - urldecode().
the script from those page:
$a = split ('&', $QUERY_STRING);
$i = 0;
while ($i < count ($a)) {
$b = split ('=', $a [$i]);
echo 'Value for parameter ', htmlspecialchars (urldecode ($b [0])),
' is ', htmlspecialchars (urldecode ($b [1])), "<BR>";
$i++;
}
----- Original Message -----
From: "Matthew Loff" <matt@willetts.com>
To: "'Andy'" <andreas.felder@felderweb.ch>;
<php-general@lists.php.net>
Sent: 2001. július 5. 10:05
Subject: RE: [PHP] Parse URL parameters
>
> Those are automatically assigned to $a1 and $a2.
>
>
> -----Original Message-----
> From: Andy [mailto:andreas.felder@felderweb.ch]
> Sent: Thursday, July 05, 2001 3:20 AM
> To: php-general@lists.php.net
> Subject: [PHP] Parse URL parameters
>
>
> How can I parse parameters sent with the URL of an pgp site?
>
> Example: I call the site with
> http://www.server.xyz/sub/site.php?a1=123&a2=312
> How can I get the values of a1 and a2?
>
> Thanks, folks!
> Andy.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net To
> contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>