The following new message has been posted on Phorm Support Forum at <http://www.phorm.com/support/>. *************************************************************************** MESSAGE: (#2542) Re: dynamically generated drop-down <http://www.phorm.com/support/?rev=2542> AUTHOR: Patrick O'Hara DATE: April 16, 2003 at 8:24 p.m. EST Reply To: (#2538) dynamically generated drop-down Author: Kally Date: April 15, 2003 at 7:07 p.m. EST Try this. (Hyphens for spacing only) <select name="seminar"> <?php -- while ($row = mysql_fetch_array($result)) { ---- $value = "$row[area] - $row[ndate]"; ---- print "<option value=\"$value\""; ---- if ($value == $seminar) { ------ print " selected"; ---- } ---- print ">$value</option>"; -- } ?> </select> Regards, Patrick O'Hara WhitsundayIT QLD, Australia patrick@xxxxxxxxxxxxxxxx www.whitsundayit.com *************************************************************************** This is an automatically-generated notice. If you'd like to be removed from the mailing list, please visit Phorm Support Forum at <http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx If you wish to respond to this message, please post your response directly to the board. Thank you! ------------------------------------------------- You are receiving this message because you are subscribed to the Phorm mailing list. To send messages to the mailing list, simply send email to phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe from the list by sending email to phorm-request@xxxxxxxxxxxxx with 'unsubscribe' in the SUBJECT field.