sydron
asked on
PHP session issues
Hi,
I have this code:
$chkHear= $_REQUEST['chkHear'];
$strHearAboutUs="";
$count=count($chkHear);
for($i=0;$i<$count;$i++){$ strHearAbo utUs="$str HearAboutU s$chkHear[ $i], ";}
$_SESSION['chkHear'] = $strHearAboutUs;
then later on i tried to read the $_SESSION['chkHear'] and simply echo the $_SESSION['chkHear'] BUT I GET nothing being displayed..
Any ideas?
I have this code:
$chkHear= $_REQUEST['chkHear'];
$strHearAboutUs="";
$count=count($chkHear);
for($i=0;$i<$count;$i++){$
$_SESSION['chkHear'] = $strHearAboutUs;
then later on i tried to read the $_SESSION['chkHear'] and simply echo the $_SESSION['chkHear'] BUT I GET nothing being displayed..
Any ideas?
I think this is a record for shortest post. God job sydron.
ASKER
Hahaha, thanks for that jmar_click........I got it to work after examining it, so i posted it asap...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
$_SESSION['chkHear'] = $strHearAboutUs;
should be
$_SESSION['chkHear'] = "$strHearAboutUs";
I will close this question....