Problem with session variables
Posted April 4th, 2007 by Ptpro
I'm having a problem with some code. Here is the code:
<?php
session_start();
$divisioncode = $_SESSION['divisoncode'];
echo ("Division Code = ".$divisioncode."++".$_SESSION['divisioncode']);
?>The division code is set as "ABC" in a previous page. The result of this code is:
Division Code = ++ABC
So what appears to be happening is that the session variable is not being transferred to the local variable. Any insights as to why this is happening? The session variable is definitely there, but it can't transfer to a local variable. Does this make sense?


Problem with session variables
Sorry, ignore this last post. I noticed a spelling error--for some reason, I can't spell: divison--divsion--devision--davision--I'll get it sooner or later.