Auto Populate Field With MemberID

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.

Quote · 21 Feb 2009

Figured it out.  Thanks-

Quote · 24 Feb 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.