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');
}
ANY HELP
Why doesn't this work? (SSH2)
This is my script:Code: <?php$connection = ssh2_connect('213.251.167.109', 22);ssh2_auth_password($connection, 'root', 'MGdgfskc');$stream = ssh2_exec($connection, 'useradd -d /home/users/test
LinkedList help
Ok so I just learned quickly about lists, so I have a not too hard project I think, but am having a few issues:Here is the project. Create a lovely polynomial calculator, that takes the equation from
Session is not saving
I am not trying to do anything too fancy, I am just trying to get some $_SESSION data to save and use it on the next page, but so far no luck. Its saving some data to $_SESSION['name'] and then
Securing a user input - need some confirmation
Hello All,I am in the process of recoding a large proportion of an e-commerce site, one of the problems is that there are a few security issues floating around.I have a search box which was originally
Receive Rosettanet Message to SAP 4.6c
Dear all ,
login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php index.php . Now if i will not give correct detail i can not see the index.php ,all working perfect
PHP & Images [Resize, Crop, Save]
Hey! Well I have a little dilema, hoping I could find some guidance.I have a CMS and on the actual website I am building I have a nice little slideshow script that runs through all the images in a
Sending UDP Raw socket
I truly need help on this. I am trying to write a test program that simulate a network environment that have 5 clients and 1 server. To do so, I need to be able to edit IP header to change it's
Reduce redundancies in switch functions?
Hello all! I somewhat new to PHP, and was wondering if anyone could give some suggestions on a switch function to reduce redundancies, and to efficaciously implement the script on to other
Count of reciepients in php mailer
How can i sent a mail to large no of reciepients say 10,00,00 Using PHP MAILER