SESSION
Posted: Mon Jan 10, 2011 10:45 pm
Code: Select all
$rt='<script language=javascript>
function showSelected()
{
var show=document.getElementById("ty").options[document.getElementById("ty").selectedIndex].value;
document.write(show);
}
</script>';
//echo $rt;
$_SESSION['tab']= $rt;
in above code i stored the variable $rt into session,,, but i doesn't give the value in other pages,,, suppose if the variable $rt having the value "student" and i print it ,then it will print student but if i try to access the same session nothing display,,,,,help me