Re: [PHP] Drop down lists

2004-01-18 Thread Peter Vertes
Yes it's possible. I believe there's a way to do it with PEAR also but I've never done it that way before. I always do: --- SELECT name = username OPTION selected--- Please Choose a Username ---/OPTION ?php // retrieve a list of usernames from the DB $results = mysql_query(SELECT

Re: [PHP] Drop down lists

2004-01-18 Thread Toby Irmer
if you say you don't know much, maybe you are looking for something like this ;) hth toby ? function formSelect($name, $options, $value) { echo select name=\$name\\n; foreach($options AS $key = $display) { echo option value=\$key\; if($value == $key)

[PHP] Drop down lists

2004-01-17 Thread BigMark
Is it possible to have usernames from my db populated into a drop down list. If so What and where does it go to make it all work, ive tried everything i know ( which is not much by the way). Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: