Re: Finding the? in $REQUEST_URI?page=blah
| From: | Christian Reiniger | Date: | Sat, 17 Feb 2001 13:52:24 +0000 |
| Subject: | Re: Finding the? in $REQUEST_URI?page=blah | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40327@lists.php.net to get a copy of this message | ||
On Friday 16 February 2001 23:57, James, Yz wrote:
> OK, I've an error handling page. Basically, I want to split (that
> might even be one of the functions I'll have to use) this sort of url:
>
> error.php?/pages/login.php?username=name
That will only cause trouble. URLs with parameters have the following
format:
scriptname?parameter1=value1[¶meter2=val2[&...]]
Two '?' in an URL are strange at best. So change that to
$ErrorURL = 'error.php?page=' .
rawurlencode ('/pages/login.php&username=name');
> /pages/login.php
$HTTP_GET_VARS['page']
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Drink wet cement. Get stoned.