Passing dropdown data which is gatherd from a mysql table

DemonMonkey

New Member
I need a script that loads data form mysql and show on a drop down list. From there, I need to pass the selected data to another page.I have done the first step. I am now able to load data from mysql table and to show them on a drop down menu. The exact is given bellow.\[code\]<?phpinclude("config.php");$result= mysql_query("SELECT folder_name FROM folders");echo '<select name="directory">'; // Open your drop down boxwhile ($row = mysql_fetch_array($result)) { //echo "<option>" . $row['folder_name'] . "</option>"; echo '<option value="'.$row['folder_name'].'">'.$row['folder_name'].'</option>';}echo '</select>';// Close your drop down box?>\[/code\]Now I need help to pass the selected data to another page. Any suggestion please?
 
Back
Top