I could really use some direction on this as I have been all over looking for help.
I have a class registration form that was built in a php form builder application (emailed their support but no response). The registration form allows you to add multiple/infinitely many students and enter their name and info.
The form seems to be passing all the form variables fine and when I print the results, I get something like this:
[php]
array(4)
{
[“StudentName”]=> array(2) { [0]=> string(12) “John Hancock” [1]=> string(8) “Joe Blow” }
[“StudentPhone”]=> array(2) { [0]=> string(12) “444-444-4444” [1]=> string(12) “555-555-5555” }
[“StudentEmail”]=> array(2) { [0]=> string(16) "[email protected]" [1]=> string(12) "[email protected]" }
[“Student_Info”]=> array(1) { [0]=> string(1) “1” } }
[/php]
How do I pull out the variables the send mail to go thru and grab each value and and send it in a sendmail? Keeping in mind again, that their can be any number of students in the list.