$value) { $mailBody .= "$key = $value\n"; } $mailBody .= "\n\n"; if ($show_ip_address == "on") { $mailBody .= "THE IP ADDRESS OF THE FORM USER IS: $REMOTE_ADDR\n\n"; } if ($show_refering_page == "on") { $mailBody .= "THE USER WAS SENT TO THIS SCRIPT FROM THE FOLLOWING FORM: $HTTP_REFERER\n\n"; } if ($show_browser_type == "on") { $mailBody .= "THE USER USED THE FOLLOWING BROWSER TYPE: $HTTP_USER_AGENT\n\n"; } if ($show_date_and_time == "on") { $mailBody .= "THE TIME AND DATE THE FORM WAS COMPLETED: " . date("h:i A l F dS, Y") . "\n\n"; } $mailBody .= "\nThis message sent via matthew ! \n VISIT Him us HTTP://WWW.healtheze.co.uk \n"; $fromHeader = "From: $from_email_name\n"; if(mail($mailTo, $mailSubject, $mailBody, $fromHeader)) { print ("Your form has been sent! "); } echo " "; ?>