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
['QUERY_STRING'] . '&' : '' ) . 'newVar=1';
It'll work, trust me. :)
---John Holmes...
- Original Message -
From: "Matt Grimm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 4:12 PM
Subject: [PH
Let's say I have a table with links in the headers for sorting each column. I want to
carry the sort variable along in the $_GET array, and I need to be able to pass other
variables to this same page, also using the GET method. My trouble is when I need to
append a new variable to the REQUEST_
4 matches
Mail list logo