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
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)
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:
3 matches
Mail list logo