我的PHP代码无法在Internet Explorer 9上运行?

时间:2013-02-07 05:47:35

标签: php internet-explorer-9

我正在使用session在php中编写代码,它在Mozilla以及chrome上工作但在Internet上探索它不起作用?请帮我解决这个问题`

<?php session_start(); if(isset($_POST['submit'])) { $_SESSION['IGNITE']="IGNITE -"; $_SESSION['IGNITE_price']=39.95; $_SESSION['IGNITE_qty']+=1; $_SESSION['total_ignite']+=39.95; } if(isset($_POST['submit1'])) { $_SESSION['REBUILD']="REBUILD -"; $_SESSION['REBUILD_qty']+=1; $_SESSION['REBUILD_price']=39.95; $_SESSION['total_rebuild']+=39.95; } if(isset($_POST['submit2'])) { $txt_rebuild=$_POST['txt_rebuild']; $txt_ignite=$_POST['txt_ignite']; $_SESSION['IGNITE_price']; $_SESSION['REBUILD_qty']=$txt_rebuild; $_SESSION['IGNITE_qty']=$txt_ignite; $_SESSION['total_rebuild']=$_SESSION['REBUILD_price'] * $_SESSION['REBUILD_qty']; $_SESSION['total_ignite']=$_SESSION['IGNITE_price'] * $_SESSION['IGNITE_qty']; } $grand_total=$_SESSION['total_rebuild']+$_SESSION['total_ignite']; ?>`

1 个答案:

答案 0 :(得分:1)

PHP与您的浏览器无关,它在服务器中运行。

检查IE中是否启用了Cookie,应启用Cookie以进行工作会话。