Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
可以用html制作联系人表单吗?_Html_Contact Form - Fatal编程技术网

可以用html制作联系人表单吗?

可以用html制作联系人表单吗?,html,contact-form,Html,Contact Form,我想做一个网站,其中包括一个调查问卷,访问者将填写。以下是我所拥有的: <html> <head> </head> <body> <form method="post" action="index.php"> <label>Name:</label> <input name="name" placeholder="Name"> <label>Email:</label> &l

我想做一个网站,其中包括一个调查问卷,访问者将填写。以下是我所拥有的:

<html>
<head>
</head>
<body>
<form method="post" action="index.php">
<label>Name:</label>
<input name="name" placeholder="Name">

<label>Email:</label>
<input name="email" type="email" placeholder="Email">

<label>Price:</label>
<select name="price" option="Free,1p - £1,£1 - £5,£5 - £10,£10 - £20,£20+"

<label>Comment:</label>
<textarea name="message" placeholder="Do you want to say anything else?"></textarea>

<input id="submit" name="submit" type="submit" value="submit">

</form>
</body>
</html>

姓名:
电邮:
价格:
您的
元素错误。你需要有孩子
s。请看这里:

所以,更像是:

<select name="price">
    <option value="0">Free</option>
    <option value="0to1">1p - £1</option>
    <option value="1to5">£1 - £5</option>
    <!-- etc -->
</select>

免费的
1便士-1英镑
£1 - £5

Can或Cannot是一个单独的东西。你是唯一能回答这个问题的人。或者您可能想更改问题标题。您没有关闭
标记,并且标记中没有
。而且,HTML本身并不能做很多事情。。。您是否实现了一些服务器端逻辑和位置来存储他们提交的信息?