I am confused on how to define $_SESSION['text']
On one page I defined:
$_SESSION['picture1_type'] = $_FILES['picture1']['type'];
echo $_SESSION['picture1_type'] ;
echo displayed the correct data. image/gif
On the next page, I echo:
echo "Session 1 = ".$_SESSION['picture1_type'];
$ii=1;
echo "Session i = ".$_SESSION['picture'.$ii.' _type'];
Now both display empty value.
Session 1 = Session i =
What can make a session variable reset to "" ?
The other session variables on all pages work correctly; so it is only this
session variable that is resetting.
Is it necessary to define a variable on one page and form the session
variable on the next pager?
Ken
On one page I defined:
$_SESSION['picture1_type'] = $_FILES['picture1']['type'];
echo $_SESSION['picture1_type'] ;
echo displayed the correct data. image/gif
On the next page, I echo:
echo "Session 1 = ".$_SESSION['picture1_type'];
$ii=1;
echo "Session i = ".$_SESSION['picture'.$ii.' _type'];
Now both display empty value.
Session 1 = Session i =
What can make a session variable reset to "" ?
The other session variables on all pages work correctly; so it is only this
session variable that is resetting.
Is it necessary to define a variable on one page and form the session
variable on the next pager?
Ken
Comment