Hi,
I’ve been messing with php a bit and got lost.
the code creates a form with a dropbox that gets populated from the db, this far it works fine.
but the drop_id should be posted to addfood.php but like this it does not post at all.
i have no idea anymore how to correct my problem.
[code]<?php
// get info from DB
$query=“SELECT * FROM food”;
$result = mysql_query ($query);
// start form
echo “”;
echo “<select name=save_id=’’>”;
//fetching & messing with array
while($nt=mysql_fetch_array($result)){
$drop_id = $nt[ID];
$drop_food = $nt[Food];
echo “$drop_food”;
}
echo “”;
echo “”;
echo “”;
?>
[/code]
I’m a noob @ php so the fix is pobably verry simple i just don’t see it.
any help is greatly apreciated.