This is killing me...please help.
Posted: Mon Oct 27, 2003 3:20 pm
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:
I get an error of:
So I am displaying this variable in a form checkbox. Here is the code:
Code: Select all
<input type="checkbox" name="newsletter" value="<?php echo $newsletter; ?>">Any ideas why?<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."/>