编辑你的代码:
<!DOCTYPE html> <html> <body> <h3>发送一个邮件给 someone@example.com:</h3> <form action="MAILTO:someone@example.com" method="post" enctype="text/plain"> 姓名:<br> <input type="text" name="name" value="您的姓名"><br> 邮件地址:<br> <input type="text" name="mail" value="您的邮件地址"><br> Comment:<br> <input type="text" name="comment" value="内容" size="50"><br><br> <input type="submit" value="发送"> <input type="reset" value="重置"> </form> </body> </html>
查看结果:
phpxuexi.net
- 亲自试一试