Posted by emre on 04/05/05 08:48
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>
[Back to original message]
|