I have an assignment that i failed to complete correctly for school. It has already been graded but I need to figure out how to do it for future reference. She wants us to create a html form that will allow users to continuously add animals to an array. She wants the array to be displayed every time the user adds a new animal.
No matter how many different ways I have tried this, I am only able to save the last animal entered. The array never gets any larger than 1 element. She said we need to take the post data and push it onto an array and then loop through the array to display all the elements.
first thing:
Can someone verify the correct way to accept multiple entries with the same input line?
second thing:
Im not at home right now but my code looks something like this. I’ve tried everything I can think of but I can only get the last element to display.
"; } ?>