- 1
Help in a form
Can someone help to do a code for a pizza store that i need it to make a pizza from ingredients in a database in mysql all in list boxes
1 Answer
+ 2
<select name="ingredients[]" multiple>
<option value="ingredient1">ingredient1</option>
//more options. Hold ctrl key while selecting to select multiple
</select>
//in php
Foreach($_POST["ingredients"] as $ingredient){
//do something with array like
Echo $ingredient."<br>";
}
Hope this helps