I have a page where a user can create a recipe. I have a javascript script that allows the user to keep adding form input elements for more ingredients. Say the recipe has 4 ingredients the user can continue to add inputs. However this changes the id to ingredient1/2/3/4 for the input ID/Name,and i can't understand how to get around getting the information from the form post as the amount of elements is upto user discretion. How would you go about loading the results into PHP variables and then inserting them into a mysql query.

the syntax for the html form

```
<div id="ingredient1" class="clonedInput">
                <h2 class="first-column">Ingredient</h2>
                <span style="float:left; padding-right: 10px;">
                <input type="text" name="scroll" value="Add Ingredient" id="ingredient" class="ingredient"/>
                </span>
</div>

```

ingredient1 would change to ingredient2 for the purpose 2 ingredient's being added.

A slightly confusing problem, so any help would be amazing!

JB