php应用开发与实践 马骏 第18章 综合案例—下—应用smarty模板开发电子商务网站新
馋死 PPT研究院 POWERPOINT ACADEMY * * * * * alert(不允许为空、必须为数字); document.getElementById(nm).select(); return false; } snd[i] = stmp; var ftmp = form.chk[i].value; fst[i] = ftmp; } } var url = changecar.php?fst=+fst+snd=+snd; xmlhttp.open(GET,url,true); xmlhttp.onreadystatechange = updatecar; xmlhttp.send(null); } function updatecar(){ if(xmlhttp.readyState == 4){ var msg = xmlhttp.responseText; if(msg == 1){ location=index.php; }else{ alert(操作失败+msg); } } } 在conshop()函数中调用的changecar.php页为数据处理页,该页将商品id和商品数量进行重新排列,并保存到shopping字段内。该页面代码如下: ?php session_s
原创力文档

文档评论(0)