I have a simple form on a page that a user submits. I am able to get the memberID automatically from the cookie with this script:
__________________________________________
global $site;
if( $logged['member'] ) {
$memberID = (int)$_COOKIE['memberID'];
} else {
$memberID = 0;
}
______________________________________________
How do I have the memberID (from the cookie) inserted into my form field automatically so that the data gets tied to the user? As it is now I get a 'Column "MemberID" Cannot Be Null' when I submit the form.