Can we see the code for the form?
and would you mind adding the PHP tags around your code, it just makes it easier for us to read it!
if you're not getting anything, I am guessing the radio button ($_POST["record"]) hasn't been set. Which could mean that someone didn't click a radio button at all on the form.
Why not take this if statement out, and just assume that the $_POST["record"] is Null.
But we still need to see the form code...