Hello there,
This is probably a really simple fix, but I have been trying to figure this one out for a good while before posting it here.
Okay, so I have a form with elements that post into a form_mailer.php page. So far everything works using the foreach function below:
foreach($_POST as $name => $value) {
print "$name : $value<br>";
}
Now I need to put every element called $body.
For example: Say I have 3 elements on the previous page that post into this page. These elements are: El_1, El_2, El_3. So when the foreach scans through the form, I want it to put the elements in $body variable like so: $body= “el_1, el_2, el3”;
What I am thinking needs to happen is that every form element gets its own variable name.
Any suggestions?
Thanks,
Brandon