View Single Post

  #2 (permalink)  
Old 09-04-2003
John W. Holmes
 
Posts: n/a
Default Re: [PHP] syntax error using header and SID

bob pilly wrote:
> Hi all
>
> Can someone tell me what the correct syntax is to pass
> a Session ID via the header redirect is? Im trying:
>
> header( "Location: page2.php?<?echo strip_tags
> (SID)?>" )
> but it isnt working for me and all the docs i can find
> just deal with tagging it to the end of a hyperlink.


header("Location: page2.php?" . SID);

You should use a complete URL, btw, including http:// and the domain name.

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com
Reply With Quote