
25-10-2007, 09:37
|
|
|
|
חבר מתאריך: 24.07.06
הודעות: 89
|
|
|
זה הקוד שמתקבל
קוד:
<html>
<body background="/essential/backgrounds/39.gif">
<form action=index1.stm method=post>
<center>
<input type="submit" name="mon" value=' 10 '>
<input type="submit" name="mon" value=' 11 '>
<input type="submit" name="mon" value=' 12 '>
<input type="submit" name="mon" value=' 1 '>
<input type="submit" name="mon" value=' 2 '>
<hr color=blue>
<center>
<BR>
Dates for month: 3
<br>
<table border=10
cellspacing=10
bgcolor=0099FF>
<tr>
<td><input type="checkbox" name="dd/mon/year" value= 1>1/3/2008</td>
<td><input type="checkbox" name="dd/mon/year" value= 2>2/3/2008</td>
<td><input type="checkbox" name="dd/mon/year" value= 3>3/3/2008</td>
<td><input type="checkbox" name="dd/mon/year" value= 4>4/3/2008</td>
<td><input type="checkbox" name="dd/mon/year" value= 5>5/3/2008</td>
</tr>
<td><input type="checkbox" name="dd/mon/year" value= 6>6/3/2008</td>
<td><input type="checkbox" name="dd/mon/year" value= 7>7/3/2008</td>
<td><input type="checkbox" name="dd/mon/year" value= 8>8/3/2008</td>
<td><input type="checkbox" name="dd/mon/year" value= 9>9/3/2008</td>
<td><input type="checkbox" name="dd/mon/year" value= 10>10/3/2008</td>
</tr>
אני רק אחזור שוב על הבעיה,
בגלל שאני מריצה לולאת while, על 5 כפתורים, והכפתור הראשון מתחיל מהחודש הנוכחי,
אז נוצרים לי 5 כפתורים (10,11,12,1,2),
הערך של המשתנה בסיום הלולאה הוא '3',
לכן, בכל מקום שמופיע 'mon' הערך '3' מוכנס, במקום אותו ערך של הכפתור שנלחץ.
מקווה שהייתי מספיק ברור...
|