Thanks for the response,
I have changed the line echo ("your message was successfully sent!");
However I get the same problem but your point about closing () would the line
mail("XXX@XXXXX ", $subject," need to be changed / closed
Thanks
User Profile
Collapse
-
Sorry
The error message is at the end of the code, On my email form I input a name, email address and text. Then I press the submit button and get a window opening 300X 300 with the text listed at the end of the code. No email is sent. I am testing the code on a laptop using XAMPP. The variable name and email address are listed at the top of the window so they look to be set OK . The prblem looks to be with the email comand...Leave a comment:
-
Problem with php code for a mail contact form
Hello,
I am new to PHP code and I have copied the following code from the internet to create a contact page on my web site.
...Code:<? $subject="from ".$_GET['your_name']; $headers= "From: ".$_GET['your_email']."\n"; $headers='Content-type: text/html; charset=iso-8859-1'; mail("<emailremoved>", $subject," <html> <head>
No activity results to display
Show More
Leave a comment: