Get value from 200 questions #2857
-
Hello, i have a specific type of form that contains up to 200 questions , majority in the form of radiobuttons. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This isn't really a PHPMailer question. There are many ways of doing that, but you could simply put everything in the request into the message like this: foreach ($_REQUEST as $key => $value) {
$mail->Body .= "$key = $value\n";
} Bear in mind that the way that checkboxes work in HTML is that if they are unchecked, they will not be included in the form submission, so you have to infer that they are unchecked by comparing them to a list of expected names. |
Beta Was this translation helpful? Give feedback.
This isn't really a PHPMailer question. There are many ways of doing that, but you could simply put everything in the request into the message like this:
Bear in mind that the way that checkboxes work in HTML is that if they are unchecked, they will not be included in the form submission, so you have to infer that they are unchecked by comparing them to a list of expected names.