获取单选框的值:<?
echo $_POST['radio1'];
?>
<html>
<head></head>
<body>
<form name="form1" method="POST">
<input type="radio" name="radio1" id="radio1" value="1">1
<input type="radio" name="radio1" id="radio1" value="2">2
<input type="submit">
</form>
</body>
</html>
echo $_POST['radio1'];
?>
<html>
<head></head>
<body>
<form name="form1" method="POST">
<input type="radio" name="radio1" id="radio1" value="1">1
<input type="radio" name="radio1" id="radio1" value="2">2
<input type="submit">
</form>
</body>
</html>
<?
print_r($_POST['checkbox1']);
?>
<html>
<head></head>
<body>
<form name="form1" method="POST">
<input type="checkbox" name="checkbox1[]" id="checkbox1[]" value="1">1
<input type="checkbox" name="checkbox1[]" id="checkbox1[]" value="2">2
<input type="checkbox" name="checkbox1[]" id="checkbox1[]" value="3">3
<input type="checkbox" name="checkbox1[]" id="checkbox1[]" value="4">4
<input type="submit">
</form>
</body>
</html>
$ch=array();
$ch=$_POST['checkbox'];
for($i=1;$i<=$ch.length();$i++)
{
}
if($_POST['s_survey']="ATAT"){
$query="insert into v_survey_22786(id,submitdate,startlanguage,token,22786X1X1,22786X1X2,22786X1X3,22786X1X5)values(?,?,?,?,?,?,?,?) where id = ";
}
elseif ($_POST['s_survey']="ATAT2"){
$query="insert into v_survey_74412(id,submitdate,startlanguage,token,74412X2X4)";
}
elseif($_POST['s_survey']="service survey"){
$query="insert into v_survey_83314(id,submitdate,startlanguage,token,83314X3X13,83314X3X6,83314X3X8,83314X3X7,83314X3X9,83314X3X10,83314X3X11,83314X3X12)values(?,?,?,?,?,?,?,?,?,?,?,?)";
}