RE: [PHP-DB] Inserting correct value from database into formoption field

2001-04-28 Thread Rudi Benkoviè
> For example, > > > If ($row['voyage'] == 'One voyage only') { echo ' selected'; } > > ?>>One voyage only Perhaps even a bit more elegant solution: >One voyage only It's just that a bunch of IF's look darn ugly if you have ~25 options. -- PHP Database Mailing List (http://www.php.net/)

Re: [PHP-DB] Inserting correct value from database into formoption field

2001-04-28 Thread Paul Burney
on 4/28/01 1:32 AM, Howard Picken at [EMAIL PROTECTED] wrote: > Which Voyage: value=""> > > One voyage only In an HTML , you can't specify the value in the select tag (btw, you can't specify cols or rows either). To specify the item to pick, you must add a " selected" keyword to the appropri