使用javascript和html提交按钮代码 [英] submit button code using javascript and html

查看:70
本文介绍了使用javascript和html提交按钮代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


请问有人可以按照我的要求给我发送代码吗....
我有三个文本框,例如名称,电子邮件ID和消息
如果我在文本框中输入了文本并单击了提交按钮,则应该将其更新为我的电子邮件ID ...


plz can anybody send me the code as per my requirement.......
i have three text boxes like name,email id,and message
if i entered the text in the textboxes and clicked on the submit button it should be update to my email id...

推荐答案

您无法使用Javascript发送邮件,并且仅HTML,您需要使用任何服务器端技术以及ASP.net,PHP.但是可以,您可以将mailto与javascript一起使用,以发送具有格式限制的邮件.看看 [在ASP.Net 2.0中发送电子邮件-反馈表 [使用ASP.NET 2.0的简易SMTP邮件 [ http://www.php-scripts.com/php_diary/122899.php3 [ ^ ]

希望对您有所帮助:)
You can not send mail using Javascript and HTML only, you need to use any server side technology as well like ASP.net,PHP. But yes you can use mailto with javascript to send mail with formatting limitation. Have a look at This[^].

Try these much better approaches for sending mail:

In Asp.net:

Send Email in ASP.Net 2.0 - Feed back Form[^]

Easy SMTP Mail Using ASP.NET 2.0[^]

In PHP:

http://www.php-scripts.com/php_diary/122899.php3[^]

hope it helps :)


这篇关于使用javascript和html提交按钮代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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