Я работаю над формой рецепта, где есть много полей, требующих ингредиентов для рецепта.
например, мой код выглядит примерно так
<legend><span>Recipe Ingredients</span></legend>
<label for="recipe_ing" title="Ingredients Name" class="required">Ingredient:<span>*</span></label>
<input name="recipe_ingr" id="recipe_ingr" size="10" />
Quantity: <input id="recipe_qty" name="recipe_qty" size="5" />
unit: <input id="recipe_unit" name="recipe_unit" size="5" />
Notes: <input type="text" id="recipe_notes" name="recipe_notes" size="15" /> <br /><br />
<label for="recipe_ing" title="Ingredients Name" class="required">Ingredient2:<span>*</span></label>
<input name="recipe_ingr2" id="recipe_ingr" size="10" />
Quantity: <input id="recipe_qty" name="recipe_qty2" size="5" />
unit: <input id="recipe_unit" name="recipe_unit2" size="5" />
Notes: <input type="text" id="recipe_notes" name="recipe_notes2" size="15" /> <br /><br />
до 15 ингредиентов, количества, единиц и примечаний
данные формы обрабатываются и контролируются с помощью formcheck.php
Теперь проблема или мой вопрос в том, какова возможная опция / функция в formcheck.php, чтобы вместо определения 15 раз, если (isset ($ _ POST [])) я запускаю цикл, и он получает все соответствующие данные ингредиентов, количества, единиц и примечаний
Надеюсь, я проясню