I tried your suggestion, and changed my code to test for empty by putting in:
...
if ($validDate3 ="")
$validDate3 = "NULL";
$validDate3 = addslashes($validDate3);
...
But my query still ends up with:
UPDATE sirlogid SET date1='2002-02-21', date3 ='',
...
which puts in a 0 into date3, and shows up as 0000-00-00 when I call it back after the update.
Thanks again for any suggestions, this has been so frustrating.