variable not being recognized by certain browsers
Posted: Fri Mar 20, 2009 8:41 pm
I am passing a dynamic action variable to a redirect function and I am having trouble with certain browsers recognizing it.
here is the code which works in every browser i have tested except for opera 9.64 and .... IE 7.
my code:
Any ideas?
Like I said ive tested in Firefox and a few other less known browsers and it works fine. I just can't have this being hit or miss depending on browsers.
Thanks, John
here is the code which works in every browser i have tested except for opera 9.64 and .... IE 7.
my code:
Code: Select all
<?php
if(!$_POST['selection'] && !$_SESSION['iconic']){
redirect_to("jobs.php");
}else if(!$_SESSION['iconic']){
$_SESSION['iconic'] = $_POST['selection'];
$exp = explode(",", $_POST['selection']);
$jid = $exp[0];
$cid = $exp[1];
redirect_to("".urlencode($_POST["action"]) .".php?jid=" . urlencode($jid) . "&cid=" . urlencode($cid) . "");
}else{
$exp = explode(",", $_SESSION['iconic']);
$jid = $exp[0];
$cid = $exp[1];
$action = $_POST['action'];
redirect_to("".urlencode($_POST["action"]) .".php?jid=" . urlencode($jid) . "&cid=" . urlencode($cid) . "");
}
?>Like I said ive tested in Firefox and a few other less known browsers and it works fine. I just can't have this being hit or miss depending on browsers.
Thanks, John