Is there any way to get the drop down value populated with the value from the database (Mysql) using php code.
Following is one of the table row which contains the drop down and texfield :
Now entering the data and pressing submit the data will be fed into the database and same table row will be presented on "processIdce.ph p" as shown in the above code but with the drop down menu showing the option selected when the data is submitted.Is there any way out to do this.
Any help regarding the same will be appreciated..:)
Following is one of the table row which contains the drop down and texfield :
Code:
<form method="POST" action="processIdce.php"> <table border=1> <?php echo "<tr><td>Has the Checklist Reviewer reviewed the IDCE code?</td>"; echo "<td><select name=\"d_response1\" id=\"d_response1\"><option value=\"Yes \">Yes</option><option value=\"No\">No</option></select></td>"; echo "<td><textarea name=\"d_comments1\" id=\"d_comments1\" value></textarea></td>"; echo "<td><select name=\"r_response1\" id=\"r_response1\"><option value=\"Yes\">Yes</option><option value=\"No\">No</option></select></td>"; echo "<td><textarea name=\"r_comments1\" id=\"r_comments1\"></textarea> </td></tr>"; ?> </table> <input type="submit" name="submit" value="Submit"/> </form>
Any help regarding the same will be appreciated..:)
Comment