Re: [PHP] Appending to the REQUEST_URI

2003-05-29 Thread Matt Grimm
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.

Re: [PHP] Appending to the REQUEST_URI

2003-05-29 Thread CPT John W. Holmes
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

Re: [PHP] Appending to the REQUEST_URI

2003-05-29 Thread CPT John W. Holmes
['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

[PHP] Appending to the REQUEST_URI

2003-05-29 Thread Matt Grimm
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_