הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   שאלה| איך נותנים שם לכפתור בjs? (https://hosts.co.il/forums/showthread.php?t=70654)

bilopay 29-12-08 20:17

שאלה| איך נותנים שם לכפתור בjs?
 
יש לי כפתור תמונה ב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> 


Erez | TrustMedia.co.il 29-12-08 21:57

תוסיף input מסוג Hidden ותבדוק בעזרתו האם שלחו את הטופס


כל הזמנים הם GMT +2. הזמן כעת הוא 10:56.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ