静态网站中的动态内容 [英] Dynamic content in Static web site

查看:87
本文介绍了静态网站中的动态内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了html网站,



有联系我们页面,我需要邮寄联系方式。



如何在HTML中实现这一点。



谢谢。

I have created html web site,

there is contact us page and I need to mail contact detail.

How can I implement this in HTML.

Thanks.

推荐答案

你将需要一些服务器端技术:ASP.NET,JSP,PHP,Python - 您可以命名它。

您可以使用HTML表单从用户那里获取一些邮件数据。表单可以使用POST方法通过某个目标URL对HTTP服务器执行HTTP发布。其他一切都取决于你在服务器端的内容。



请注意,从帖子数据发送电子邮件是一项非常危险的事情。只有在你有足够的安全经验时才应该去做,否则有人会把你的主机变成一个分发垃圾邮件的僵尸或类似的东西。除非您完全控制后期数据,否则很快就可以轻松完成。有关详细信息,请参阅我以前的答案:

无法发送邮件,它显示以下代码中的错误。 [ ^ ]。



如果您决定使用特定的服务器端技术,您可以获得更多帮助。



-SA
You will need some server-side technology: ASP.NET, JSP, PHP, Python — you name it.
You can have an HTML form to get some mail data from your user. The form can have "POST" method to perform HTTP post to your HTTP server with some target URL. Everything else depends on what you have on the server side.

Please be advised that sending e-mail from the post data is a really dangerous business. You should get to it only if you have sufficient security experience, otherwise someone will turn your host into a zombie distributing spam or something like that. It can be done easily, in no time, unless you fully control the post data. For further detail, please see my past answer:
unable to send mail , it showing the error in below code .[^].

You can get more help if you decide on a particular server-side technology.

—SA


这篇关于静态网站中的动态内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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