Between the comment marks, describe each major component of the contact form’s PHP script.
<!-- --> $name = $_POST['firstlastname']; $email = $_POST['emailaddress']; $message = $_POST['message']; $from = $_POST['firstlastname']; $to = 'someone@domain.com'; $subject = '[Resume;] inquiry'; $human = $_POST['human'];
<!-- --> $headers .= "Reply-To: <{$_POST['emailaddress']}>";
<!-- --> $body = "$name $email $web $phone $message\n"; if ($_POST['submit']) { if ($name != '' && $email != '') {
<!-- --> if ($human == '4') {
<!-- --> if (mail ($to, $subject, $body, $from)) { echo 'Your message has been sent!
'; } else { echo 'Something went wrong. Please try again.
'; } } else if ($_POST['submit'] && $human != '4') { echo 'The form was cleared because you provided an incorrect Anti-Spam answer. Please try again.
'; } } else { echo 'Please fill in all required fields.
'; } }