Home >Backend Development >PHP Tutorial >PHP如何制作简易问卷调查

PHP如何制作简易问卷调查

PHPz
PHPzOriginal
2016-06-06 20:50:542444browse

PHP如何制作简易问卷调查

PHP如何制作简易问卷调查?

我们使用记事本操作就行,复制如下代码,并将后缀名改为html。

<html>
<head>
<title>问卷调查</title>
</head>
<body>
<form action="wp2.php" method=POST>
<p>姓名:<input type="text" name=姓名>
    <p>兴趣:<input type="text" name=兴趣>
<p>性别:</p>
<input type=radio name=sex value="男">男
<input type=radio name=sex value="女">女
<p>血型:</p>
<input type=radio name=blood value=A>A
<input type=radio name=blood value=B>B
<input type=radio name=blood value=AB>AB
<input type=radio name=blood value=O>O
<p>请选择您擅长的一种或几种编程设计语言:</p>
<input type=checkbox name=yy[] value="C++">C++
<input type=checkbox name=yy[] value="PHP">PHP
<input type=checkbox name=yy[] value="Shell">Shell
<input type=checkbox name=yy[] value="VBScript">VBScript
<p>请选择您最擅长的操作系统:</p>
<select name=OS>
<option value="Linux" selected>Linux
<option value="Unix">Unix
<option value="Windows">Windows
</select>
<p>如果您有什么建议,敬请留言:</p>
<textarea name=advise rows=5 cols=60>
</textarea>
<br>
    <input type=submit value="提交"/>
<input type=reset value="重置"/>
</form>
</body>
</html>

用浏览器打开的完成图如图所示:

企业微信截图_15928739508073.png

更多相关技术文章,请访问PHP中文网

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn