Hi,
How can I create a popup select menu inside HTML that is content is dynamic (MYSQL field data). And how can I read the variable and use it.
Thanks.
Moderators: macek, egami, gesf

$query=mysql_query("SELECT id, caption FROM `location`");
echo"<form method=post action=pejone.php> <select name=popupmenu size=1>";
while ($data=mysql_fetch_aray($query))
{
echo" <option value=$data['id']>$data['caption']</option>";
}
echo " </select></form>";
Return to PHP coding => General
Users browsing this forum: Google [Bot] and 1 guest