相同的联系表单在不同的托管帐户上表现不同
我从未遇到过这个问题。我有两个托管帐户,一个是 godaddy,另一个是 hostgator。这两个 URL 上有相同的文件:
和
http://www.vitaminjdesign.com/cloth/cloths/
两个网站看起来一样,但有一个主要区别。当填写第二个链接上的联系表格时,它可以正常工作并发送给我。在第一个链接中,您按“提交”,但没有显示成功消息,并且邮件从未发送。这不起作用!这些文件是相同的。这对我来说毫无意义。联系方式是PHP和ajax。也许是 godaddy 后端的东西?有什么想法吗?
I've never experienced this problem. I have two hosting accounts, one with godaddy, and one with hostgator. There are identical files on these two URLS:
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
两种托管服务之间的 PHP 和/或其模块的配置设置(甚至版本)很可能不同。尝试创建一个仅包含以下内容的脚本:
并在浏览器中查看它;然后您可以比较两者的设置。
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:
And viewing it in a browser; you can then compare the settings for both.
您正在通过电子邮件发送表格吗?我猜 GoDaddy 不支持
mail()
。You're emailing the form? I'm guessing GoDaddy doesn't support
mail()
.