|
 |
|
คือผมทำแบบประเมินซึ่งเอาหัวข้อการประเมินมาจาก mysql แต่ผมติดตรงradio button พอติ๊กข้อ 2 แล้วข้อ1 ที่ติ๊กไว้มันหายน่ะครับ ไม่ทราบว่าต้องทำยังไงครับหรือมีวิธีไหนบ้าง |
|
 |
|
|
 |
 |
|
น่าจะแก้ปัญหาได้นะ
Code (PHP)
<form name="form1" method="post" action="">
<fieldset>
<legend><b>ตารางแบบประเมิน</b></legend>
<table width="400" border="1">
<tr align="center">
<td>ID</td>
<td>permar</td>
<td>point</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<?php do { ?>
<tr align="center">
<td><?php echo $row_Recordset3['ID']; ?></td>
<td><?php echo $row_Recordset3['permar']; ?></td>
<td><?php echo $row_Recordset3['point']; ?></td>
<td><input type="radio" name="radio<?php echo $row_Recordset3['ID']; ?> " id="r1" value="r1"><label for="r1"></label></td>
<td><input type="radio" name="radio<?php echo $row_Recordset3['ID']; ?> " id="r2" value="r2"><label for="r2"></label></td>
<td><input type="radio" name="radio<?php echo $row_Recordset3['ID']; ?> " id="r3" value="r3"><label for="r3"></label></td>
<td><input type="radio" name="radio<?php echo $row_Recordset3['ID']; ?> " id="r4" value="r4"><label for="r4"></label></td>
<td><input type="radio" name="radio<?php echo $row_Recordset3['ID']; ?> " id="r5" value="r5"><label for="r5"></label></td>
</tr>
<?php } while ($row_Recordset3 = mysql_fetch_assoc($Recordset3)); ?>
</table>
|
 |
 |
 |
 |
Date :
2014-12-05 01:11:43 |
By :
tongkamlekdee |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ต้องทำความเข้าใจกับ ปุ่ม radio และ checkbox ก่อนนะครับ
radio เลือกอย่างใดอย่างหนึ่ง
checkbox เลือกบางส่วนหรือเลือกทั้งหมด
radio กลุ่มเดียวกันใช้ name เดียวกัน
checkbox แยกตัวแปรกันชัดเจน ถ้าตัวแปรเดียวกัน ให้ทำเป็น array
|
 |
 |
 |
 |
Date :
2014-12-05 07:49:22 |
By :
Chaidhanan |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากครับ
|
 |
 |
 |
 |
Date :
2014-12-08 01:57:29 |
By :
ิbed02925 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|