setting a session with a text link?

From: Date: Mon, 21 Aug 2006 12:08:04 +0000
Subject: setting a session with a text link?
Groups: php.general 
Request: Send a blank email to php-general+get-240943@lists.php.net to get a copy of this message
I want to set a session with a text link, am having problems with the syntax. The link swiches the session to on or off. <a href="" class="link_text">swtich off</a> href="" class="link_text">swtich on</a> I want to do this but the syntax is incorrect. <?=$_SERVER['PHP_SELF']?$_SESSION['switch]='0'; ?> <?=$_SERVER['PHP_SELF']?$_SESSION['switch]='1'; ?> what is the correct syntax for this line? Ross

« previous php.general (#240943) next »