I am pulling information from a database and it is stored in a SESSION as a variable. The variable is $newletter. In the database this field is a CHAR which will either have "0" or "1" in the record.
So I am displaying this variable in a form checkbox. Here is the code:
<ERROR Number="8" Description="Error: "Use of undefined constant userid - assumed 'userid'" on line 121 of /home/httpd/vhosts/ticketblasters.com/httpdocs/students/manage.php."/>
Your question spawned a solution. I ran to where the SESSION variable was registered and boom...that was it. So I added the code to register the variable. And added an echo in my manage page (where the form lies). It echos correctly. I am now having a problem using the checkbox to display the record.
It should display as unchecked if the record has "0" or "" (nothing) in it. AND display as checked if the record has "1" in it.
How is that supposed to look (in contrary to what I have now - stated in my last post)?