יש לי כפתור תמונה בjs ואני רוצה לתת לו שם בישביל ליבדוק בphp אם לחצו על הכפתור
הקוד של ההתחברות:
PHP קוד:
<script type="text/javascript">
function login_submit()
{
document.myform.submit();
}
</script>
<form name="myform" action="index.php" method="POST">
<font color="#000000" face="arial" style="font-size:12pt;">
שם משתמש:
</font>
</td>
<td>
<input type="text" name="username">
</td>
</tr>
<tr>
<td>
<font color="#000000" face="arial" style="font-size:12pt;">
סיסמה:
</font>
</td>
<td>
<input type="text" name="password">
</td>
</tr>
</table>
<center>
<a onclick="login_submit()" href="javascript: login_submit();"><img src="images/conect.gif" width="109" height="31" border=0></a>
</center>
</form>