Hi everyone!
I am a newbie to PHP. I have some understanding of the programming since I come from a Actionscript background. I have an RSVP form for my upcoming Stag and Doe that I would like to have multiple people signup to on the same form. I need to collect their Name and Email, though I've never done dynamic textbox such as the one I use for the site: http://binnyva.blogspot.com/2006/01/dynamic-form-field-generation-in.html
I have a simple form that uses POST to send variables and send an email to me.
When I collect my variables, The user has the option of having several people RSVP to the Stag And Doe and thus the variables go up in numbers at the end of the variable name. So my variables are:
Names_1 and Email_1
Names_2 and Email_2
....
How can I create a foreach statement that will collect all these variables, no matter how many are created?
So if I can turn this in a foreach statement that collects all variables:
$Name_1 = $HTTP_POST_VARS['Name_1'];
$Email_1 = $HTTP_POST_VARS['Email_1'];
any help is appreciated! I would have gone and looked through more tutorials though time is crucial for me at this moment. 😕
Thank you
Laszlo