Re: syntax error using header and SID
| From: | Tyler Lane | Date: | Thu, 04 Sep 2003 17:29:04 +0000 |
| Subject: | Re: syntax error using header and SID | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161680@lists.php.net to get a copy of this message | ||
On Thu, 2003-09-04 at 09:33, 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)?>" )
header( "Location: page2.php?". strip_tags( SID ) );
the problem you are having is that you are already inside php tags when
you are using the header function and don't need to make new php tags to
use the echo statement. and for that matter, you don't need to use the
echo statement at all. just append the SID to the end of the location.
> but it isnt working for me and all the docs i can find
> just deal with tagging it to the end of a hyperlink.
>
> Any help would be greatly appreciated!
>
>
>
> ________________________________________________________________________
> Want to chat instantly with your online friends? Get the FREE Yahoo!
> Messenger http://mail.messenger.yahoo.co.uk
--
Tyler Lane <tlane@lyrical.net>
Lyrical Communications
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc