Skip to main content
Inspiring
August 17, 2020
Question

PHP Contact Form is not submitting info

  • August 17, 2020
  • 4 replies
  • 452 views

I built my very first contact form in Dreamweaver.  I am using the Post method and added all the necessary I believe.  However, when I test my form, it resets as if something has happened but when I check the email, there is nothing there.

I have gone line by line but cannot see what I am missing.  Any help with this would be so appreciated!
http://kristeelane.com/contact.php

    This topic has been closed for replies.

    4 replies

    Nancy OShea
    Community Expert
    Community Expert
    August 17, 2020

    Processing forms and securing form data have become way more complex than a few years ago because of widespread cyber attacks & spamming.  Attackers use form vulnerabilities to exploit sites and servers.  This can be especially bad on low cost shared hosting where a hundred or more sites are using the same server IP address.

     

    And as Ben said, you should NOT gather form data over a non-secure HTTP server.  Your client should upgrade hosting to HTTPS servers or purchase SSL/TLS certificates from a reputable 3rd party certificate authority like Let's Encrypt, Comodo, CloudFlare and others.  

     

    #1 Ask GoDaddy which form processing scripts they recommend you use with your hosting plan. 

     

    #2 Or use a 3rd party form-processing service like JotForm or Wufoo.com.   Form processing is performed on their servers, not yours.

     

    Nancy O'Shea— Product User & Community Expert
    Inspiring
    August 17, 2020

    Thank you all, I will try these suggestions.   FYI, the SSL certificate was already installed.  The site was just finished yesterday and it takes up to 48 hours before it becomes active.

    Nancy OShea
    Community Expert
    Community Expert
    August 17, 2020
    • Do the form and script variable names match exactly?
    • Do you know which PHP version is installed on your web server?
    • Does your GoDaddy hosting plan support the PHP mail () function or do they require you to use SMTP authentication?

     

    Nancy O'Shea— Product User & Community Expert
    Legend
    August 17, 2020

    If the website is hosted on GoDaddy then its unlikely they support the php mail() function on account they are somewhat of a cheap  hosting solution attracting poor developers who dont know how to secure their php forms to stop them being used as spam relays.

     

    Youre either going to have to use their choice of workflow to send mail or choose a better hosting company providing the options which you require and not what you are forced to use by a hosting company.

    Inspiring
    August 17, 2020

    I am not sure what you mean by "poor".  Not sure what that has to do with my question.

    Community Expert
    August 17, 2020

    You will need to post some of your code so we can evaluate that way.  At the moment, a form submission does not throw an error in the console, so I can only confirm the action was successful.

     

    Also as a side note, please add SSL to your site. If visitors see your site is insecure they will not be likely to submit information as they would with an SSL cert.  Many hosts off these for free through a service like let's encrypt and it would be sufficient for your site.

    BenPleysier
    Community Expert
    Community Expert
    August 17, 2020

    Could you please paste the PHP code at the top of your document, that is where the problem lies.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!