Sorry, my bad I should have been more specific.
// Current Statement
$sql = "INSERT INTO members (first_name,last_name,address,company,faxlist,city,state,
zip,k,q,conference,calendar,christmas,pocketcal,email,phone,fax) VALUES
('$first_name','$last_name','$address','$company','$faxlist','$city','$state',
'$zip','$k','$q','$conference','$calendar','$christmas','$pocketcal','$email',
'$phone','$fax')";
// New Statement
$sql = "INSERT INTO members (first_name, last_name, address, company, faxlist, city, state, zip, k, q, conference, calendar, christmas, pocketcal, email, phone, fax) VALUES (";
if ($first_name == "") {
$sql .= "NULL";
}
else {
$sql .= "'$first_name'";
}
$sql .=")";
Again this should be written in a much better form, I'd suggest that you use the global variable for the posted form variables and then loop through them performing the above if..else on each of them.