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');
}
Your Answer:
Login to answer
59
14
Other forums
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
Deleting pointers froms vector?
Hi. I have a vector filled with pointers and I want to delete the pointers. I could do a loop and do
how to query data from website using VC?
I want to query some datum from a website,so I need a program to read data from a .csv file, and ass
mysql select with $_get ?
Hi, i have this code:
Code: // If char id is 0 and character dont exist do:
if ($_GET["id
whats wrong with my code please help!!!
this is the error
Warning: mysql_close(): supplied argument is not a valid MySQL-Link res
Giving the below syntax error
Dear Experts,
I have used 2 buttons in gui status as display and cjhange.When the user wi
Problem with php's rename function
So, i'm having a problem with the php rename function. Basically my script 'delete_user.php' attempt
mysql timestamp manipulation
How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:
from
RadioButtonList item spacing
I have a RadioButtonList and I can't put any spacing between the items. They are arranged verticall
php + mysql count consecutive data
I have a database of values and I want to work out how to display them if the values match a consecu