Help me find my error HTML Email Form and PHP Handler

Hi, ;D

As a beginner in PHP, I am creating a Contact form and handler PHP for my website.

  1. I have created both the Form and the PHP handler, but I keep getting:
    http://example.com contact.html xxx.xxx.x.xx /contact/submit xxxxx.org Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Here are the HTML code and PHP code. I can’t see my mistake(s) and THANKS:
HTML:
<!doctype html>

Contact Phoenicia

Name:

Email:

City and Country:

Your Website's URL (optional):


How did you locate PhoeniciaOrg?:

Message or Qustion:

PHP:

<?php $Name = $_POST['Name']; $email = $_POST['email']); $CityCountry = $_POST['CityCountry']; $url = $_POST['url']); $OtherHow = $_POST['OtherHow']); $MessageQuestion = $_POST['MessageQuestion']; $to = "[email protected]"; $subject = "xxxxxxx"; mail($to, $email, $CityCountry, $url, $OtherHow, $MessageQuestion, "From: " . $Name); echo "THANK YOU - YOUR MESSAGE HAS BEEN SENT" ?>

Also, I would love to add re-Captsha to the form, is there an easy way to incorporate it?

Thanks.

Sponsor our Newsletter | Privacy Policy | Terms of Service