Topic: Form values into an indexed array
I'm wanting to create a form with several rows to send out invitations.
e.g.
Name: "value" Email: "value"
Name: "value" Email: "value"
Name: "value" Email: "value"
How would I code this to place the form values into an array? Would something like this work?
<form>
<table>
<?php
"<tr> // (note: this row would be generated using a for loop and there would be several of these table rows.)
<td><input type=\"text\" name=\"whole_name\" value=\"<?php echo $whole_name[]; ?>\" id=\"whole_name\" /></td>
<td><input type=\"text\" name=\"email_list\" value=\"<?php echo $email_list[]; ?>\" id=\"email_list\" /></td>
</tr>";
?>
</table>
</form>
Would simply placing brackets after the value variable, create an indexed array? e.g.... $whole_name[]

