I have a form tool where users can select various SELECT fields to create a custom RF cable assembly. Each time a user selects a SELECT field value, the value is stored in a SESSION variable via the GET method. Here is one of my SELECT fields.
Code: Select all
<select class ="cabletype" name="cabletype" onChange="MM_jumpMenu('parent',this,0)">
<OPTION value="">----------</OPTION>
<?php
if (($series1=="IPX") || $series2=="IPX"){
while($cable= mysql_fetch_array($ipx_cables_result)) {
if ($cable['assembly'] == $cabletype) {
?>
<OPTION value="rf-cable-assemblies-test.php?cable=<?php echo $cable['assembly'];?>" SELECTED><?php echo $cable['cable_name'];?></OPTION>
<?php
} else {
?>
<OPTION value="rf-cable-assemblies-test.php?cable=<?php echo $cable['assembly'];?>"><?php echo $cable['cable_name'];?></OPTION>
<?php
}
}
} else {
?>
<?php
while($cable= mysql_fetch_array($cable_result)) {
if ($cable['assembly'] == $cabletype) {
?>
<OPTION value="rf-cable-assemblies-test.php?cable=<?php echo $cable['assembly'];?>" SELECTED><?php echo $cable['cable_name'];?></OPTION>
<?php
} else {
?>
<OPTION value="rf-cable-assemblies-test.php?cable=<?php echo $cable['assembly'];?>"><?php echo $cable['cable_name'];?></OPTION>
<?php
}
}
}
?>
Code: Select all
if((isset($_GET)) && !empty($_GET['cable'])) {
$_SESSION['cable']=$_GET['cable'];
$selected11=1;
} else{
$selected11=0;
}
//Setting the SESSION to a variable
$cabletype = $_SESSION['cable'];
What would cause this particular SESSION variable to work on my local machine and not on the live server, when the other SESSIONS are working fine?