echo '<script>alert("$data_name  库存不足,请重新选择!");window.history.go(-1);exit();</script>';这样就 OK了呵呵
专业讨论网站: www.phptx.cn    论坛地址:www.phptx.cn/bbs