1st post, i'm tryin 2 develop a website for drinks.. and havin some trouble with my ingredient input.
1st off, would it be better to ask users to select the number of ingredients or give a set amount.
i understand that the latter, although easier, can create un-needed code and chew memory.
but with that being said, the 1st option may disrupt the flow of my site.. (HELP !)
2ndly, im again unsure of how to store these variables.
the input will look very similar to the following:
Code: Select all
<form id="form1" name="form1" method="post" action="">
Ingredient:
<select name="ingredient_type">
<?php
while ($row = mysql_fetch_array($result)){
extract($row);
echo "<option value='".$ingredientID."'>".$ingredientID;
}
?>
</select>
Amount:
<input type="text" name="amount" id="amount" maxlength="11" width="50"/>
</form>
would it be best to store them in an array?
