Re: [PHP-DB] Selecting Drop Down Value From DB to Edit

2002-03-27 Thread Steve Fitzgerald
or="#cc"> <td valign="middle" height="25" class="raceresutlstitle" bgcolor="#cc">Race Report:</td> <td valign="middle" bgcolor="#cc"> <textarea name="RaceReport" cols

Re: [PHP-DB] Selecting Drop Down Value From DB to Edit

2002-03-27 Thread Dan Harrelson
If I understand your question, when editing an existing record where StateID = "CA", you want the drop-down to show "California" as selected. You need to add a little code into your while loop to echo "SELECTED" into the appropriate "option" tag. -Dan --- Steve Fitzgerald <[EMAIL PROTECTED]> w

RE: [PHP-DB] Selecting Drop Down Value From DB to Edit

2002-03-27 Thread Rick Emery
cting Drop Down Value From DB to Edit I have the below code that populates a drop down list. The code will correctly insert the value $StateID into another a table. The problem I am running into is that when I select the record to edit the drop-downlist has the first option as the value instead of wha

[PHP-DB] Selecting Drop Down Value From DB to Edit

2002-03-27 Thread Steve Fitzgerald
I have the below code that populates a drop down list. The code will correctly insert the value $StateID into another a table. The problem I am running into is that when I select the record to edit the drop-downlist has the first option as the value instead of what the corresponding StateID in the