我在使用會話在php中編寫代碼,它在Mozilla上以及在Chrome上工作,但在互聯網上探索它不工作?請幫我解決這個問題`我的php代碼不能在Internet Explorer 9上運行?
<?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'];
?>`
發佈您的代碼。 –
PHP與瀏覽器無關,因爲代碼在服務器上運行 –
PHP在服務器上運行,所以它根本與瀏覽器無關。你的代碼有問題。 – asprin