<img src .....> problem in onclick

From: Date: Fri, 20 May 2011 13:05:34 +0000
Subject: <img src .....> problem in onclick
Groups: php.general 
Request: Send a blank email to php-general+get-312955@lists.php.net to get a copy of this message
i want to when clicking on the image then go to other page or set my $_SESSION i have this in php code: echo"<img src=' ' onclick='$_SESSION['s1']=12(i mean a number)';/>"; how can i correct this or if it is completely wrong how 2 solve it? i tried to set header in onclick too but i think it can't do because header is function of php and i echoed the html tag

« previous php.general (#312955) next »