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

show the direct link into href
I want to display link on the page. i am fetching the data(URL) from database,actually before that i

Gaining access to Drop Down Menu Variable
code is below, I am creating a drop down menu. I want to echo the value selected in the drop down me

Save data in input fields when they press "BACK BUTTON"
Hi, this is html form: And let's say they get a error "Please enter ur title must be more then

(sub)screen resize modification doesn't work after ECC 6 EhP 4 installation
Hello,

We have previously extended the size of the custom data tab on PO transaction ME23

C problem struct and string
Hi guys,

This is my first post and I'm hoping the experts here can help me solve my problem.<

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

Help with file_get_html
The following code gives the expected results:

<html>
<head&g

Problem displaying "scraped" XML data
I'm basicly having trouble displaying XML data scraped from an URL using cURL.

What the code

square instead of number
Hello
I do not know why but this code seems to work fine only in my xampp local insallation but n

Help with forum quoting?
Hi im working on a forum and I have alomost finished it but i want a user quote system like twitter

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