This is just a follow-up question above, this time i wanted to have a dependend drop down that when the users selected 'others' for instance another texbox will show-up right next to my drop down. How can I do it from my code or should I place the condition if ever?
thanks,
DM
thanks,
DM
Code:
echo '<tr><td><b>Lead Generated By:</b></td>';
$res=mysql_query("select lead from tblgenerated");
if(mysql_num_rows($res)==0){
echo "there is no data in table..";
} else {
echo ' <td width="100%"><select name="lead" id="lead" value=\"$lead\">';
for($i=0;$i<mysql_num_rows($res);$i++) {
$row=mysql_fetch_assoc($res);
echo"<option value=\"$row[lead]\" ";
if($lead==$row[lead])
echo "selected";
echo ">$row[lead]</option>";
}
echo "</select><br></tr></td>";
}
Comment