$b) { $body .= sprintf("%20s: %s\n", $b, $_REQUEST[$a]); } if ($from == '') { print "You have not entered an email, please go back and try again"; } else { if ($name == '') { print "You have not entered a name, please go back and try again"; } else { $send = mail($to, $subject, $body, "From: Classified-Ad@whatzup.com" . PHP_EOL); if ($send) { print "Thank you $Name, your Ad has been submitted, redirecting to paypal."; echo ""; } else { print "Sorry $Name, but we encountered an error sending your form, please notify info.whatzup@gmail.com, or call us at XXXXXXXXXXXXXX."; } } }