一个菜鸟的菜问题~~~~~~~~~~~~~~~~~~ 改成:<?session_start();if ($_POST['book']=="ON") {$_SESSION['buylist'].="book;";}少写了个“)” 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if ($_POST['book']=="ON" { 该成if ($_POST['book'])=="ON" { 少了个),if ($_POST['book']=="ON" {改成if ($_POST['book']=="ON") {if ($_POST['hat']=="ON" {改成if ($_POST['hat']=="ON" ){ if ($_POST['book'])=="ON" {------------------------这样不对吧? if ($_POST['book']=="ON" {==》if ($_POST['book']=="ON" ){ gm.php<?////$_SESSION['name']="";////$_SESSION['buylist']="";?><form action ="jz.php" method ="post"><br><input type ="checkbox" name ="book" value="ON"> 入门手册<br><input type ="checkbox" name ="hat" value="ON"> 帽子<br><input type ="submit" value="确认">jz.php<?session_start();$_SESSION['buylist']="";if ($_POST['book']=="ON") {$_SESSION['buylist'].="book;";}if ($_POST['hat']=="ON") {$_SESSION['buylist'].="hat;";}$temp = $_SESSION['buylist'];$result =split(";",$temp);$num = count ($result)-1;/////for ($i=1,$i<=$result,$i++) ???????? print "你买的第1个商品:".$result[0]);?> 不好意思,有一个问题忽略了,更正一下gm.php<?////$_SESSION['name']="";////$_SESSION['buylist']="";?><form action ="jz.php" method ="post"><br><input type ="checkbox" name ="cumtom" value="book"> 入门手册<br><input type ="checkbox" name ="cumtom" value="hat"> 帽子<br><input type ="submit" value="确认">jz.php<?session_start();$_SESSION['buylist']="";if ($_POST['custom']=="book") {$_SESSION['buylist'].="book;";}if ($_POST['cumtom']=="hat") {$_SESSION['buylist'].="hat;";}$temp = $_SESSION['buylist'];$result =split(";",$temp);$num = count ($result)-1;/////for ($i=1,$i<=$result,$i++) ???????? print "你买的第1个商品:".$result[0]);?> checkbox 控件 用法上有些小问题 ThinkPhp 基础问题,请指教 PHP不执行 setcookie()不执行 zend studio 5.1 几个调试问题 100分 编号自动生成问题 phpmailer发送html格式邮件的时候,怎么能让接收方看到邮件的同时看到邮件正文的图片? 怎么 $_SESSION[] 用不了 phpcms中只在非空值时判断唯一值这么处理 ●●求助:"Table is read Only"错误怎么解决? csdn网站系统的问题 这样的怎么转化呢?abc=>'abc' 这两种查询方式,哪种效率更高?
if ($_POST['hat']=="ON" {改成if ($_POST['hat']=="ON" ){
==》
if ($_POST['book']=="ON" ){
////$_SESSION['name']="";
////$_SESSION['buylist']="";
?><form action ="jz.php" method ="post">
<br><input type ="checkbox" name ="book" value="ON"> 入门手册
<br><input type ="checkbox" name ="hat" value="ON"> 帽子
<br><input type ="submit" value="确认">
jz.php<?session_start();
$_SESSION['buylist']="";if ($_POST['book']=="ON") {
$_SESSION['buylist'].="book;";
}
if ($_POST['hat']=="ON") {
$_SESSION['buylist'].="hat;";
}$temp = $_SESSION['buylist'];
$result =split(";",$temp);$num = count ($result)-1;/////for ($i=1,$i<=$result,$i++) ????????
print "你买的第1个商品:".$result[0]);?>
////$_SESSION['name']="";
////$_SESSION['buylist']="";
?><form action ="jz.php" method ="post">
<br><input type ="checkbox" name ="cumtom" value="book"> 入门手册
<br><input type ="checkbox" name ="cumtom" value="hat"> 帽子
<br><input type ="submit" value="确认">
jz.php<?session_start();
$_SESSION['buylist']="";if ($_POST['custom']=="book") {
$_SESSION['buylist'].="book;";
}
if ($_POST['cumtom']=="hat") {
$_SESSION['buylist'].="hat;";
}$temp = $_SESSION['buylist'];
$result =split(";",$temp);$num = count ($result)-1;/////for ($i=1,$i<=$result,$i++) ????????
print "你买的第1个商品:".$result[0]);?>
checkbox 控件 用法上有些小问题