That was one I tried early on.
with the guidance of others I’ve found that my issue is not having a mail handler on my server.
I’m told this should solve the problem.
Unfortunately i ain’t been able to get back to this yet.
Ok, took onboard the links.
Redone the html but the PHP still won't send an email.
I keep getting 'Failed to connect to mailserver
I have this if anyone can see whet I'm missing:
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message']...
While I no longer get a fault when I have all the code on one page, nothing happens when I submit the email form. The fields are blanked, as in a page refresh, but no email is sent.
Some progress is better then none.
My complete code including style:
I've had a look and check then checked again. I just can't see a problem with the HTML.
I've posted my latest here.
<label for="fname">First Name</label>
<input type="text" id="fname" name="firstname" placeholder="Your first name..">
<label for="lname">Last Name</label>
Hi Colin. Worse than before.
All seems to be related to:
$fname = strip_tags(htmlspecialchars($_POST['fname'])); THIS IS LINE 10
$lname = strip_tags(htmlspecialchars($_POST['lname']));
$email = strip_tags(htmlspecialchars($_POST['email']));
Been a few days since my last post but finally back to this problem.
As this is my first delv into PHP I'm finding it less than easy.
I've worn my Google keys out but still can't fix this.
If anyone can see a fault in my latest try !!!!!
As per SpywareDr I changed some entries to (I think) match...
Boy is this PHP is blowing my mind.
I restarted my attempts to get my contact form working.
When I fill out the form and hit submit I get the error page. "OOPS"
My html, which works fine, I think, is:
I now have a form (Thanks to SpywareDR) that does what I need, but when I get the info sent to my website I get this error message.
( ! ) Parse error: syntax error, unexpected '?> ' in D:\wamp64\www\EmailForm\action_page.php on line 12
Line 12 only has ?> in it, which I thought just...