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