一个菜鸟的菜问题~~~~~~~~~~~~~~~~~~ 改成:<?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 控件 用法上有些小问题 求助怎样 处理dedecms 自定义字段 怎么把图片和文字一起提交到数据库中? 正在学php+mysql,有什么比较经典的学习项目介绍一下 url传值,接收到的是undefined? 登录成功并不刷新整个页面。。。而是刷新局部。 关于php mysqli长连接 请高手指点,自己做的一个论坛,在数据插入的时候有点问题 怎么实现汉字按首字母分类 请问大家是怎样处理 \ / " ' .这些符号的? 问一个初级的问题,请赐教。 这样的怎么转化呢?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 控件 用法上有些小问题