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
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