日期:2014-05-17  浏览次数:20643 次

php单项选择提交
HTML code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.radio{margin:250px 0 0 200px;}.radio ul li{color:#333333;font-size:14px; line-height:23px; margin-bottom:18px;}.radio ul li h4{font-size:14px; font-weight:bold;}.ra_al{ vertical-align:middle;}.radio ul li font{margin:0 10px 0 5px;color:#333333;font-size:14px;}
.button{margin:50px 0 0 450px;}.sub1,.sub2{background:url(../images/sub.gif) no-repeat; width:104px; height:27px; cursor:pointer; border:0;}
.sub2{ background-position:0 -34px;}
</style>
</head>

<body>
<form action="test.php" method=post>
<div class="radio">
                    <ul>
                        <li><h4>1、你会选择哪类酒店办婚宴?</h4>
                              <input name="radio1" type="radio" value="1" class="ra_al" /><font>社会性餐饮酒店</font>
                            <input name="radio1" type="radio" value="2" class="ra_al" /><font>三四星级类酒店</font>
                            <input name="radio1" type="radio" value="3" class="ra_al" /><font>五星级类酒店</font>
                        </li>
                        <li><h4>2、拍婚纱照,你会选择影楼、会所还是工作室?</h4>
                              <input name="radio2" type="radio" value="1" class="ra_al" /><font>知名影楼</font>
                            <input name="radio2" type="radio" value="2" class="ra_al" /><font>婚纱摄影会所</font>
                            <input name="radio2" type="radio" value="3" class="ra_al" /><font>个性摄影工作室</font>
                        </li>
                        <li><h4>3、拍婚纱照你最在意哪方面?</h4>
                              <input name="radio3" type="radio" value="1" class="ra_al" /><font>品牌知名度</font>
                            <input name="radio3" type="radio" value="2" class="ra_al" /><font>拍摄内外景、服装等硬件设施</font>
                            <input name="radio3" type="radio" value="3" class="ra_al" /><font>服务品质</font>
                            <input name="radio3" type="radio" value="4" class="ra_al" /><font>有无后期消费</font><br />
                            <input name="radio3" type="radio" value="5" class="ra_al" /><font>后期数码处理水平</font>
                            <input name="radio3" type="radio" value="6" class="ra_al" /><font>照片风格</font>
                        </li><li><h4>4、你会选择在哪里购买结婚钻戒?</h4>
                              <input name="radio4" type="radio" value="1" class="ra_al" /><font>百货商场专柜</font>
                            <input name="radio4" type="radio" value="2" class="ra_al" /><font>品牌珠宝门店</font>
                            <input name="radio4" type="radio" value="3" class="ra_al" /&