提交联系表格而不使用PHP [英] Submit Contact Form without using PHP

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

问题描述

我还是学生,今天我们的讲师告诉我们,无需使用mailto:函数即可提交联系我们表单的唯一方法是使用PHP。

I'm still a student and today our lecturer told us that the only way in order to submit a contact us form without having to use the mailto: function is to use PHP.

我发誓,去年另一位讲师向我们展示了一种仅使用javascript的方式。

I swear that last year another lecturer showed us a way using only javascript.

是否可以使用基本表格提交反馈/联系表格javascript?如果是这样,你介意分享一个示例吗?

Is it possible to submit a feedback/contact form using a basic form and javascript ? If so, do you mind sharing a sample example ?

提前致谢

推荐答案

您可以使用JavaScript通过一些参数重定向到 mailto:,但这并不理想。另请注意, mailto: URL中的电子邮件地址以外的任何内容都是非标准的。虽然它适用于许多浏览器,但它不适用于所有内容。

You can use JavaScript to redirect to mailto: with some parameters, but that isn't ideal. Also keep in mind that anything beyond an e-mail address in a mailto: URL is non-standard. While it will work for many browsers, it won't work for everything.

发送电子邮件的最佳方式是使用PHP或服务器端进行操作别的。

The best way to send e-mail is to do it server-side, using PHP or something else.

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

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