Re: Passing a variable without ?var=
From: Ian.H (ian_at_WINDOZEdigiserv.net)
Date: 04/04/04
- Next message: marathon: "Re: Unwanted PHP Uploads"
- Previous message: J. Codling: "Re: Passing a variable without ?var="
- In reply to:(deleted message) Ian.H: "Re: Passing a variable without ?var="
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 04 Apr 2004 02:14:58 GMT
On Sun, 04 Apr 2004 02:13:10 +0000, Ian.H wrote:
>> That is my conclusion so I abandoned the idea. It doesn't
>> look all that unprofessional and if I wanted to hide the
>> page names I could always change to a switch statement in
>> the PHP instead. I like the way it is now so I'll just leave
>> it that way.
>>
>> Thanks for the help though!
>
>
> You could use PATH_INFO:
>
>
> $pi = explode('/', $_SERVER['PATH_INFO']);
> $page = $pi[0];
Here we go again =[
That should be:
$page = $pi[1];
$pi[0] is empty.
Regards,
Ian
-- Ian.H digiServ Network London, UK http://digiserv.net/
- Next message: marathon: "Re: Unwanted PHP Uploads"
- Previous message: J. Codling: "Re: Passing a variable without ?var="
- In reply to:(deleted message) Ian.H: "Re: Passing a variable without ?var="
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|