• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

PHP Contact Form is not submitting info

Participant ,
Aug 16, 2020 Aug 16, 2020

Copy link to clipboard

Copied

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

Views

289

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

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

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

  • 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 & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

Im just saying that some hosts disable the default php mail function, especially cheap shared hosting servers, because they attract developers who dont understand how to secure their forms against spam so consequently the hosting company experiences a lot of email spam through their servers which is not desirable as they will be blacklisted.

 

It looks like you might have to use the SMTP workfow to send data from a form if your hosting provider is GoDaddy, which is more complex to set up, but affords the hosting company some protection against poor coding practices.

 

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines