首页上一页 1  下一页尾页 7 条记录 1/1页
        求助技术老师:php入门到精通第3版第24章订单处理代码settle_chk.php 最后没有跳转到forminfo.php 从而没有进入 $smarty->display('forminfo.tpl');
                 	
                        发表在PHP图书答疑
                        2015-06-30                                                
                    		
                                                                            	
                        
                        
                    
                    
                    	是否精华
                    	是
                    	否
                    
                    
                    
                            版块置顶:
                            是
                            否
                        
                    
                        设置时间:
                        非永久
                        永久            
                    
                    
                           起始时间:
                           结束时间:
                        
                    
                        是否扣分:
                        是
                        否
                    
                    
                    
                    
                
                                           订单处理代码settle_chk.php 最后没有跳转到forminfo.php 从而没有进入 $smarty->display('forminfo.tpl');        
                
        	
        
        
    精彩评论 7
            2015-06-30
                   
                   
                   
                            
                            沙发
                        
   
                   
                                                             光盘里settle_chk.php代码的最后两句为:	
echo "<script>top.opener.location.href='index.php';</script>";
echo "<script>open('forminfo.php?fid=$formid','_blank','width=600 height=450',false);window.close();</script>";//为何不能执行继续这句代码
我修改为
echo "<script>top.opener.location.reload();</script>";
echo "<script>open('forminfo.php?fid=$formid','_blank','width=600 height=450',false);window.close();</script>";//还是不能继续执行这句代码
                    
                
                
            echo "<script>top.opener.location.href='index.php';</script>";
echo "<script>open('forminfo.php?fid=$formid','_blank','width=600 height=450',false);window.close();</script>";//为何不能执行继续这句代码
我修改为
echo "<script>top.opener.location.reload();</script>";
echo "<script>open('forminfo.php?fid=$formid','_blank','width=600 height=450',false);window.close();</script>";//还是不能继续执行这句代码
2015-06-30
                   
                   
                   
                        6L
                    
   
                   
                                                             [FIELDSET][LEGEND]引自:5楼[/LEGEND]
还是createxmlhttp.js那个文件,修改一下就可以了。
[/FIELDSET]
回复: 在settle.php最后的代码是这样吗 我还是不能跳转 我设置了internet 高级的 用户我本地调试选项了
if(false == $InsertSQL){
echo "<script>alert('购买失败');history.back;</script>";
}else{
$updsql = "update tb_user set consume='".$tmptt."',shopping='' where name = '".$_POST['uid']."'";
$updrst = $admindb->ExecSQL($updsql,$conn);
echo "<script>top.opener.location.href='index.php';</script>";
echo "<script>open('forminfo.php?fid=$formid','_blank','width=750 height=650',false);window.close();</script>";
}
?>
                
            还是createxmlhttp.js那个文件,修改一下就可以了。
[/FIELDSET]
回复: 在settle.php最后的代码是这样吗 我还是不能跳转 我设置了internet 高级的 用户我本地调试选项了
if(false == $InsertSQL){
echo "<script>alert('购买失败');history.back;</script>";
}else{
$updsql = "update tb_user set consume='".$tmptt."',shopping='' where name = '".$_POST['uid']."'";
$updrst = $admindb->ExecSQL($updsql,$conn);
echo "<script>top.opener.location.href='index.php';</script>";
echo "<script>open('forminfo.php?fid=$formid','_blank','width=750 height=650',false);window.close();</script>";
}
?>

	
                                                
购物车
发表新帖
立即签到
                






