i would like to write an on click event on a button and im doing it like this
<form name="form1" action="" method="post">
<input type="button" name="mybutton" onclick="<?php print "my Test"; ?>";
form1.submit()">
</form>
its not working(not printing and no error message), does anyone know what i doing wrong here .
thanks
<form name="form1" action="" method="post">
<input type="button" name="mybutton" onclick="<?php print "my Test"; ?>";
form1.submit()">
</form>
its not working(not printing and no error message), does anyone know what i doing wrong here .
thanks