Re: Set session variable if link is clicked, do not want to use GET

From: Date: Tue, 05 Apr 2005 05:48:21 +0000
Subject: Re: Set session variable if link is clicked, do not want to use GET
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-212240@lists.php.net to get a copy of this message
lol, sorry for mess, I was in a bit hurry. here is the right one: <form name=TestForm action=test.php method=post> <input type=hidden name=op value=5> <IMG src=a.gif onclick="SubmitMyForm();'> <!--or a text mabe? --> <span onclick='SubmitMyForm();'><br>Submit</span> </form> then define the javascript function named as SubmitMyForm: <script language=javascript> function SubmitMyForm() { document.TestForm.submit(); } </script>

« previous php.general (#212240) next »