у меня примерно такая формочка, какой вариант мне более подходит?
<form name="form1" method="post" action="warehouse_nakl.php">
<p><label class="cat10">Товар</label> </p>
<select name="tovar_id" class="vvid0">
<?
$result = mysql_query("SELECT id,SUBSTR(NAME,1,20) AS name FROM goods",$db);
if (mysql_num_rows($result) > 0)
{
$myrow = mysql_fetch_array($result);
do
{
printf("<option value='%s'>%s</option>",$myrow["id"],$myrow["name"]);
}
while ($myrow = mysql_fetch_array($result));
}
?>
</select>
<label class="cat10">Поставщик </label>
<select name="firma" class="vvid01" >
<?
$result = mysql_query("SELECT id,SUBSTR(NAME,1,20) AS name FROM firma",$db);
if (mysql_num_rows($result) > 0)
{
$myrow = mysql_fetch_array($result);
do
{
printf("<option value='%s'>%s</option>",$myrow["id"],$myrow["name"]);
}
while ($myrow = mysql_fetch_array($result));
}
?>
</select>
<label class="cat21">Цена
<input type="text" name="price" id="2" maxlength="15" size="15" class="vvid">
</label>
<p>
<label>
<input type="submit" name="submit" id="submit" value="Ok" class="forma">
</label>
</p>