Results 1 to 1 of 1
Thread: Combobox auto selected
-
January 31st, 2006, 04:44 PM #119Obamskie
postsCombobox auto selected
I've got a little problem. I'm building a little application. I've got a form with comboboxen that submits values to my database (sql). But now the question:
I'm trying to make a form that updates te values (so the user can change the values). This is all working.. but i've got to re-select te comboboxes again..
as you can see... there's 1 textinput filled with the values from the database... but isn't there a way to auto-select these comboboxes ?Code:<?php include '../include/db_connect.php'; $result = mysql_query("SELECT * FROM downloads WHERE down_ID = '$id'") or die (mysql_error()); while ($data = mysql_fetch_array($result)) { echo "<center> <form action='index.php?p=change_entry' method='POST' > <table width='544' border='0' cellspacing='0' cellpadding='0'> <tr> <td width='140' align='left' > Soort</td> <td width='260' align='left' ><select name='menu_SOORT' id='menu_SOORT'> <option value='piccies/movies.gif' selected>Dvd</option> <option value='piccies/games.gif'>Game</option> <option value='piccies/apps.gif'>Software</option> <option value='piccies/music.gif'>Muziek</option> <option value='piccies/xxx.gif'>Pron</option> </select></td> </tr> <tr> <td align='left'> Titel</td> <td align='left'><input name='menu_TITEL' type='text' id='menu_TITEL' size=42 value='$data[down_TITEL]'></td> </tr> <tr> <td align='left'> By</td> <td align='left'><select name='menu_By'> <option value='Bas' selected>Bas</option> <option value='Thomas'>Thomas</option> <option value='Wilfred'>Wilfred</option> <option value='Bram'>Bram</option> <option value='Peep'>Peep</option> <option value='Erik'>Erik</option> <option value='Danny'>Danny</option> </select></td> </tr> <tr> <td align='left'> Status</td> <td align='left'><select name='menu_STATUS'> <option value='piccies/downloaden.gif' selected>Downloaden</option> <option value='piccies/bezit.gif'>in Bezit</option> </select></td> </tr> <tr> <td align='left'> Score</td> <td align='left'><select name='menu_SCORE'> <option value='piccies/1ster.gif' selected>*</option> <option value='piccies/2ster.gif'>**</option> <option value='piccies/3ster.gif'>***</option> <option value='piccies/4ster.gif'>****</option> <option value='piccies/5ster.gif'>*****</option> </select></td> </tr> <tr> <td colspan=2><center><input name=submit type=submit value='opslaan'></center><input type=hidden name='id' value='$data[down_ID]'></td> </tr> </table> </form> </center> "; } ?>
I hope you understand me guys!
Similar Threads
-
comboBox + external textFile
By timothye in forum Flash IDEReplies: 0Last Post: January 20th, 2006, 02:53 PM -
Combobox component row height
By brandao in forum Flash IDEReplies: 0Last Post: January 15th, 2006, 05:46 PM -
remember combobox options
By jerryj in forum Flash IDEReplies: 2Last Post: January 9th, 2006, 12:41 PM -
How do I get value of cell in column 3 of the selected dataGrid row?
By kennyb in forum Flash IDEReplies: 1Last Post: December 27th, 2005, 03:55 PM -
Dependent ComboBox
By niks_crasher in forum ActionScript 2 (and Earlier)Replies: 0Last Post: April 12th, 2005, 02:19 AM

Reply With Quote

Bookmarks