Recent content by Dingus

  1. Dingus

    HTML Contact Form

    Thanks Lisa. 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.
  2. Dingus

    HTML Contact Form

    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: <?php $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $message = $_POST['message']...
  3. Dingus

    HTML Contact Form

    I just discovered, if I leave one of the fields empty I don't get a fault.
  4. Dingus

    HTML Contact Form

    Some development. 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: <meta name="viewport"...
  5. Dingus

    HTML Contact Form

    Thanks Colin. I didn’t but Dreamweaver did. 😂
  6. Dingus

    HTML Contact Form

    Yes Colin I have them on two different pages. I'll give that a go. Cheers
  7. Dingus

    HTML Contact Form

    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. Contact Form <label for="fname">First Name</label> <input type="text" id="fname" name="firstname" placeholder="Your first name.."> <label for="lname">Last Name</label> <input...
  8. Dingus

    HTML Contact Form

    excellent Colin. I’ll start having a look there.
  9. Dingus

    HTML Contact Form

    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'])); $phone =...
  10. Dingus

    HTML Contact Form

    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...
  11. Dingus

    HTML Contact Form

    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: <div class="email"> <form action="/EmailForm/action_page.php"> <label...
  12. Dingus

    HTML Contact Form

    Update for SpywareDr. PHP is working ok
  13. Dingus

    HTML Contact Form

    Hi SpywareDr. I installed WAMP a while ago, whch has PHP in it. I assumed it would work ok but have never checked it as PHP I know very little of PHP. colinsp I'll give that a try. Cheers for now
  14. Dingus

    HTML Contact Form

    OK folks. 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...
  15. Dingus

    HTML Contact Form

    Thanks SpywareDr. This is perfect for me. I only need to do a few tweaks. Then work out how pho gets it submitted.
Top