AJAX联系表格 [英] AJAX contact form

查看:78
本文介绍了AJAX联系表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我发现了一个ajax联系表单脚本,但我不能让b ******工作。我对它进行了一些改动而且它没有工作所以我用原版替换了所有东西但它仍然没有工作...不知道为什么,但无论如何。在隐藏的DIV中页面延迟后,表单出现。原始表单只有名称,电子邮件和消息,但我必须添加一些问题,所以我做了,我还添加了一些代码来自另一个脚本,我发现改变正文。我可能把它搞砸了但是我不是专家所以请帮助。


所有代码都在一个php文件中,在实际页面中称为include 。它显示得很好但是当我提交它时只是说请等待并且从不发送电子邮件。

Ok so I found an ajax contact form script but i can''t get the b****** to work. I made a bunch of alterations to it and it didn''t work so i replaced everything with the original and it still didn''t work...dunno why, but anyhow. The form appears after a delay on the page in a hidden DIV. The original form just had name, email and message, but i have to add a few questions to it so i did and i also added some code from another script i found to alter the body text. I probably screwed it all up but i''m no expert so please help.

All the code is in a single php file that''s called as an include in the actual page. It displays just fine but when i go to submit it just says "please wait" and never sends an email.

展开 | 选择 | Wrap | 行号

推荐答案

回复是什么?服务器?


你有任何错误吗?
What''s the response from the server?

Do you get any errors?


没有。没有反应。它什么都不做。
Nope. No response. It does nothing.


你能不按预期使用PHP页面而不使用Ajax?
Can you get the PHP page working as expected without using Ajax?


这篇关于AJAX联系表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆