identical contact forms behaving differently on different hosting accounts
I've never experienced this probl开发者_如何学Goem. I have two hosting accounts, one with godaddy, and one with hostgator. There are identical files on these two URLS:
http://www.cloth2clay.com
and
http://www.vitaminjdesign.com/cloth/cloths/
Both websites look the same, but there is one major difference. When filling out the contact form on the second link, it works correctly and gets sent to me. One the first link, you press submit, and the success message doesnt show up and the mail is never sent. It doesnt work! The files are IDENTICAL. it makes no sense to me. The contact form is PHP and ajax. Perhaps its something on godaddys backend? Any ideas?
Chances are the configuration settings (or even the version) for PHP and/or its modules differ between the two hosting services. Try creating a script that has only the following in it:
<?php
phpinfo();
?>
And viewing it in a browser; you can then compare the settings for both.
the mail is never sent
You're emailing the form? I'm guessing GoDaddy doesn't support mail()
.
精彩评论