Guestbook trouble

hey ive got a flash guestbook and i have this code in it for making sure all the input fields are full

if (!isset($name) || !isset($email) || !isset($message) || empty($name) || empty($email) || empty($message)) {
print “&result=Fail”;
print “&errorMsg=” . urlencode(“Input required for all fields.”);
exit;

problem is when i fill the input fields it still says there not all full

ive tried just taking it out pecause i dont really need the function anyway but when i post it doesnt put any of the data into the entries section

any ideas

-Tom