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>

Recommended Answers

All 2 Replies

here is the full code


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

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

while($rw2=mysql_fetch_array($q2)) { 
if ($ids==$id_id){

<option value="<?php echo $rw2['subject']; ?>"><?php echo $rw2['subject']; ?></option><?php }  ?><?php }  ?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.