Hi, ;D
As a beginner in PHP, I am creating a Contact form and handler PHP for my website.
- 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>
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" ?>