- 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

18th Jul 2016, 11:17 PM
Paulo Magalhaes
Paulo Magalhaes - avatar
1 Réponse
+ 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
19th Jul 2016, 2:53 PM
GlennV