Display Multiple Inputs from one Input field
Posted: Wed Sep 14, 2011 1:53 pm
So i have a form in the file index.php
What i want to do is for every time the submit button is pressed, i can echo the first name that was submitted, and also echo the current name that was submitted.. and so on...
So for example:
Name: dead
hit submit
shows:
dead
name: man
hit submit
shows:
dead
man
I have a counter on my submit button already. I just cant get the inputs that where submitted before to show up.
Code: Select all
<form method="post" action="index.php">
<div id="name"><input type="text" name="name" size="10" /></div>
<input type="submit" name="submitted" value="Submit"/>
</form>
So for example:
Name: dead
hit submit
shows:
dead
name: man
hit submit
shows:
dead
man
I have a counter on my submit button already. I just cant get the inputs that where submitted before to show up.