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

adding 0 to numbers
Hey guys i need to create a 00001 number in a loop. Is there a better way of forcing a 5 digit numbe

Using loop to count number of entries
I'm writing a program that must ask user to type in numbers. After each entry, the program has to re

Need help in Generating Combinations
Need help generating all possible combination of names in an array

Lets say i have the follow

Multiple PHP errors when clicking a link..and..removing a ghost..
Hi - I have 2 problems with a new website - homeswapvacations.com, which I need help solving.

read integers that returns a negative or prints the average
Im trying to finish this homework assignment by tommarow afternoon and I keep getting stuck.
Wr

Why use OOP?
Can someone explain to me why I should use OOP instead of procedure based code.

Im building a

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

Splitting Attributes
SQL> SELECT I_NAME, substr(I_NAME,1,instr(I_NAME,'O')) "First part",

substr(I_NAME, IN

for loop without same $i digits?
Hi,

Can some guru please advise how can I accomplish this with a simple for loop ?

I

Need a Timecode Class...
Not a Time Stamp, Time Code. Format is a bit different. HH:MM:SS:FF where FF is Frames. I dont re

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