Jump to content

Posting selected drop down value


mattichu

Recommended Posts

Hey

 

how would I post the selected value from the following code?

 

$sql="SELECT username FROM members";

$result=mysql_query($sql);

 

$options="";

 

while ($row=mysql_fetch_array($result)) {

 

   

    $username=$row["username"];

    $options.="<OPTION VALUE=\"$id\">".$username;

}

?>

 

 

<SELECT NAME="person">

<OPTION VALUE=0>Choose

<?=$options?>

</SELECT>

Link to comment
https://forums.phpfreaks.com/topic/252968-posting-selected-drop-down-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.