Re: syntax error using header and SID
| From: | Chris Hayes | Date: | Thu, 04 Sep 2003 16:51:00 +0000 |
| Subject: | Re: syntax error using header and SID | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161673@lists.php.net to get a copy of this message | ||
At 18:33 4-9-03, you 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)?>" )You are making a row of mistakes that suggest it is a good idea to read a bit on PHP syntax and how variables are passed over pages. For instance, you are calling a php function such as header(), you are already inside php tags (<?PHP and ?>), or at least you SHOULD be. Then, you work with SID, is that a CONSTANT ? A good place to start is the first chapters of the online php manual on uk.php.net/manual/en and a tutorial on sessions on http://www.phpfreaks.com/tutorials/41/0.php