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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux