mes" <[EMAIL PROTECTED]>
To: "Matt Grimm" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 1:06 PM
Subject: Re: [PHP] Appending to the REQUEST_URI
> Replying to myself... :)
>
> > You have to check for it, regardless.
Replying to myself... :)
> You have to check for it, regardless. See if this works for you.
>
> $url = $_SERVER['REQUEST_URI'] . '?' . ((isset($_SERVER['QUERY_STRING']))
?
> $_SERVER['QUERY_STRING'] . '&' : '' ) . 'newVar=1';
>
> The middle part basically sees if the QUERY_STRING is empty. If it i
You have to check for it, regardless. See if this works for you.
$url = $_SERVER['REQUEST_URI'] . '?' . ((isset($_SERVER['QUERY_STRING'])) ?
$_SERVER['QUERY_STRING'] . '&' : '' ) . 'newVar=1';
The middle part basically sees if the QUERY_STRING is empty. If it is, it
includes a question mark other
3 matches
Mail list logo