RE: [PHP-WIN] drop dwon menu
| From: | Robert Collins | Date: | Thu, 04 Jan 2001 15:55:49 +0000 |
| Subject: | RE: [PHP-WIN] drop dwon menu | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4807@lists.php.net to get a copy of this message | ||
Try somthing like this
<?
print("Article Type: <SELECT NAME=\"form_element_name\">");
$sql = "SELECT * FROM table";
$result = mysql_query($sql);
while ($myrow = mysql_fetch_array($result)) {
$id = $myrow["id"];
$item = $myrow["item"];
print("<OPTION VALUE=\"$id\">$item");
}
print("</SELECT><br>");
?>
-----Original Message-----
From: andRie is [mailto:andrie@inf.its-sby.edu]
Sent: Thursday, January 04, 2001 8:15 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] drop dwon menu
Hello php-windows,
any one knows how to make dropdown menu using php script ?
is it possible without using javascript ?
--
Best regards,
andRie
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net