RE: [PHP] weird urls
| From: | César Aracena | Date: | Sat, 10 Aug 2002 18:17:09 +0000 |
| Subject: | RE: [PHP] weird urls | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111965@lists.php.net to get a copy of this message | ||
That's because PHP detects whatever it's after that question marks as
variables so it's able to process them in requests you make in your
scripts. The one you quote means that there is a variable being passed
from one page to another named $url which has the value /index.php.
So, if you call (in the incoming page) a script which need to know what
is the value of $url that was passed, the script will know that is
/index.php.
C.
> -----Original Message-----
> From: XoXGrimreaper@netscape.net [mailto:XoXGrimreaper@netscape.net]
> Sent: Saturday, August 10, 2002 2:56 PM
> To: php-general@lists.php.net
> Subject: [PHP] weird urls
>
> How come some URLs have all these questions marks and stuff like that?
> Below:
>
> source.php?url=/index.php
>
> __________________________________________________________________
> Pre-order the NEW Netscape 7.0 browser. Reserve your FREE CD and pay
only
> $2.99 shipping and handling. http://cd.netscape.com/promo_one/
>
> Get your own FREE, personal Netscape Mail account today at
> http://webmail.netscape.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php