Hi, This is a part of my code..I'm making a Post form
if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){
print "<tr><th>Email1: </th>
<td><input name=\"email\" type=\"text\" class=\"textfield\" id=\"email\" /></td>
</tr>";
print "SESS not set"; //////////////////for test
}
if(isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){
$memberEmail = $_SESSION['SESS_MEMBER_ID'];
print $memberEmail;/////////////////for test
print "<input name=\"email\" type=\"hidden\" value=\"{$memberEmail}\"class=\"textfield\" id=\"email\" />";
}
If session is NOT set (user NOT loggedin) then shows "Email" form field other wise just add the value in a hidden field.
But...it works both !isset and isset. It shows moth test prints : (
I cannot understand what is the problem.
Or please tell me other way to do this. Thanks.