die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
//////////// end of reCaptcha code /////////
//is already checked on the contact page but check to see if is a valid email format
if(!$userEmail == "" && (!strstr($userEmail,"@") || !strstr($userEmail,".")))
Use Back - Enter valid e-mail
$badinput = "
Inquiry was NOT submitted
//is already checked in contact.php as well but doesn't hurt to check again
if(empty($userName) || empty($userEmail) || empty($content ))
Please go back and fill in all of the fields
$content = stripcslashes($content);
$message = 'Title: Link Exchange
Link Description: '.$linkDesc.'
Image URL: '.$imgURL.'
Recip. URL: '.$urlRecp.'
$from = "From: $emailrn";
if(!mail($theEmail, $subject, $message, $from))
//Then there was a problem
There was a problem with the mailing function. Please try again.';
Your link exchange has been successfully submitted, thank you.