0

hello, can anyone please help me with this piece of code, is not showing combobox value, why ??? its urgnt

<tr><td>TERM</td><td><select name="term"  ><option value="t_1">FIRST TERM</option><option value="t_2">SECOND TERM</option><option value="t_3">THIRD TERM</option><option value="t_4">FOURTH TERM</option><option value="t_5">FIFTH TERM</option><option value="t_6">SIXTH TERM</option><option value="t_7">SEVENTH TERM</option><option value="t_8">EIGHTH TERM</option></select></td></tr>
<tr><td><?php if(isset($_POST['term']))
{ echo $_POST['term'];} ?></td></tr>
2
Contributors
2
Replies
15
Views
2 Years
Discussion Span
Last Post by pclfw
0

here is the full code

<tr><td>SUBJECT</td><td>


<select name="subject">
<?php
 include "connection.php";

 $s2="select * from combobox_data"; 
$q2=mysql_query($s2) or die (mysql_error());


while($rw2=mysql_fetch_array($q2)) { 
$ids=$rw2['id_t'];
$id_id=$_POST['term'];
if ($ids==$id_id){


?>
<option value="<?php echo $rw2['subject']; ?>"><?php echo $rw2['subject']; ?></option><?php }  ?><?php }  ?>
 </select>
 </td></tr>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.