while listbox ค่าvalue ของ listbox ไม่ส่งมาครับ

<table width="600" border="0" cellspacing="1" cellpadding="3">
  <tr>
  <td colspan="4" align="center">:: ภาษา :: </td>
  </tr>
    <tr>
      <td width="312">language/ภาษา</td>
      <td width="83">Speak/พูด</td>
      <td width="78">Read/อ่าน</td>
      <td width="98">Write/เขียน</td>
    </tr>
    <? $query=select_query("language","");
 while($rs=mysql_fetch_row($query)){
 ?>
    <tr>
      <td><input name="ch[]" type="checkbox" id="ch[]" value="<?=$rs[0]?>">
       <?=$rs[1];if($rs[0]==6){echo "<input type=text name=namelang id=namelang/>";}?></td>
      <td><select name="slang" id="slang">
   
        <? $sql_listbox="select  *  from  level order by id_level asc ";
$query_listbox=mysql_query($sql_listbox);
while($row_listbox=mysql_fetch_row($query_listbox)){
echo "<option value='$row_listbox[0]' ";
if($row_listbox[0]==$value ){echo "selected";}
echo ">
";
echo $row_listbox[1];
echo "</option>";
}?>
      </select></td>
      <td><select name="rlang" id="rlang">
    
          <? $sql_listbox="select  *  from  level order by id_level asc";
$query_listbox=mysql_query($sql_listbox);
while($row_listbox=mysql_fetch_row($query_listbox)){
echo "<option value='$row_listbox[0]' ";
if($row_listbox[0]==$value ){echo "selected";}
echo ">
";
echo $row_listbox[1];
echo "</option>";
}?>
      </select></td>
      <td><select name="wlang" id="wlang">
 
        <? $sql_listbox="select  *  from  level order by id_level asc";
$query_listbox=mysql_query($sql_listbox);
while($row_listbox=mysql_fetch_row($query_listbox)){
echo "<option value='$row_listbox[0]' ";
if($row_listbox[0]==$value ){echo "selected";}
echo ">
";
echo $row_listbox[1];
echo "</option>";
}?>
      </select></td>
    </tr>
    <?}?>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
15 พ.ย. 2552 0 1,784
ยังไม่มีความคิดเห็น โพสต์เลยตอนนี้
ความคิดเห็น
ไฟล์อัปโหลด ชนิด jpg, jpeg ขนาดไฟล์ไม่เกิน 1024
^