表单数据获取与样式表使用全解析
1. 表单数据获取
1.1 通过电子邮件发送表单结果
使用表单的一种简单方法是通过电子邮件发送结果。可以在不使用任何 JavaScript 的情况下实现这一点,不过也可以使用 JavaScript 来验证输入的信息。
要通过电子邮件发送表单结果,需在表单的 action 属性中使用 mailto: 操作。以下是一个示例代码:
<html>
<head>
<title>Email Form Example</title>
</head>
<body>
<h1>Email Form Example</h1>
Enter the following information. When you press the Submit button,
the data you entered will be sent by email.
<form name="form1" action="mailto:user@host.com"
enctype="text/plain" method="POST">
<p><b>Name:</b> <input type="TEXT" size="20" name="yourname">
</p>
<p><b>Address:</b> <input type="TEXT" size
超级会员免费看
订阅专栏 解锁全文
3923

被折叠的 条评论
为什么被折叠?



