<input type="text" name="name[]" value="" />
<input type="text" name="name[]" value="" />
User can add a new input field with 'Add new input field' button.
Im validating my form so my question is how to echo the values user have entered
in the input fields when the user have submitted the form and
error appears, since the values are in array.
I could do this:
Code: Select all
value=" <?php echo $_POST[name][1]; "throught somehow.