Header is not working in IE


Posted on 16th Feb 2014 07:03 pm by admin

Hi ! header function is not working in IE but it works in FF, Safari, Chrome. any help please. :


if (isset($_POST['sub1'])) {
$id = $_POST['cscstest'];
$qty = $_POST['cscsqty'];
$id = $_POST['cscstestmul'];
$qty = $_POST['multiqty'];
$id2 = $_POST['extralan'];
$qty2 = $_POST['languagetestqty'];



If (!empty($_POST['cscstest'])) {

$id = $_POST['cscstest'];

$qty = $_POST['cscsqty'];

$_SESSION['cscstest'] = $id;

$_SESSION['cscsqty'] = $qty;

$_SESSION['cscsqty'] = isset($_POST['cscsqty']) && $_POST['cscsqty'] > 0 && is_numeric($_POST['cscsqty']) ? $_POST['cscsqty'] : 1;

$add_item = add_to_cart_multiple($id, $_SESSION['cscsqty']);

$_SESSION['total_items'] = total_items($_SESSION['cart']);

$_SESSION['total_price'] = total_price($_SESSION['cart']);

}

if (!empty($_POST['cscstestmul'])) {

$id = $_POST['cscstestmul'];

$qty = $_POST['multiqty'];

$_SESSION['cscstestmul'] = $id;

$_SESSION['multiqty'] = $qty;

$_SESSION['multiqty'] = isset($_POST['multiqty']) && $_POST['multiqty'] > 0 && is_numeric($_POST['multiqty']) ? $_POST['multiqty'] : 1;

$add_item = add_to_cart_multiple($id, $_SESSION['multiqty']);

$_SESSION['total_items'] = total_items($_SESSION['cart']);

$_SESSION['total_price'] = total_price($_SESSION['cart']);

}

if (!empty($_POST['extralan'])) {

$id2 = $_POST['extralan'];

$qty2 = $_POST['languagetestqty'];

$_SESSION['extralan'] = $id2;

$_SESSION['languagetestqty'] = $qty2;

$_SESSION['languagetestqty'] = isset($_POST['languagetestqty']) && $_POST['languagetestqty'] > 0 && is_numeric($_POST['languagetestqty']) ? $_POST['languagetestqty'] : 1;

$add_item2 = add_to_cart_multiple($id2, $_SESSION['languagetestqty']);

$_SESSION['total_items'] = total_items($_SESSION['cart']);

$_SESSION['total_price'] = total_price($_SESSION['cart']);



}

if (!empty($_POST['otherqty'])) {

$id3 = $_POST['otherqty'];

$qty3 = $_POST['otherqtynum'];

$_SESSION['otherqty'] = $id3;

$_SESSION['otherqtynum'] = $qty3;

$_SESSION['otherqtynum'] = isset($_POST['otherqtynum']) && $_POST['otherqtynum'] > 0 && is_numeric($_POST['otherqtynum']) ? $_POST['otherqtynum'] : 0;

$add_item3 = add_to_cart_multiple($id3, $_SESSION['otherqtynum']);

$_SESSION['total_items'] = total_items($_SESSION['cart']);

$_SESSION['total_price'] = total_price($_SESSION['cart']);



}

header('Location: index.php');
}

Posted on 18th Sep, 2018
pripankaj
thanx for sharing..

Your Answer:

Login to answer
59 Like 14 Dislike
Previous forums Next forums
Other forums

passing data from one page to another
hey guys
i have the follwoing code to get information from one page and place on another:

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

Help With editting and deleting form
Hallo !!

So look at this image :

http://img194.imageshack.us/img194/8272/snapshot5f.pn

matching numbers inside ( )
I know I can match numbers by just [0-9]+, so I thought matching numbers inside ( ) would be somethi

Passing PHP variables from one page to another
Hello-

I'm having trouble figuring out how to transport a variable from one php file to anoth

Not Loading Function Into Div
I'm not sure whether to put this under the php forum or ajax forum but because I tink it's more of a

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

Execure stored procedure on a timer
Can someone tell me an easier way to execute a stored procedure on a timer? I am using Oracle 10g R

dropdown menu
Hello everbody,

I am php newbie.
I need to develop a program that once click the drop do

Add_Months not Easy to Understand
Oracle is number 1, very fast and very easy. But....
OK, I think but have a problem, only 1 pro

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash