Hi
I am trying to write a guest book for my site. I have the basic form working ok, but I would like to make sure that the required form fields are filled in.
I have added this bit of code:
<?php
// submitted form details
isset ($name, $email, $country, $comment);
if (!isset($name, $email, $country, $comment));
{
echo "All Form fields must be completed before submitting";
echo "<a href = "\""/guestbook/guestbook.php""\"> Click here to go Back </a>";
}
?>
BUT it displays the error message no matter if the fields are completed or not!
Help..... I'm sure its a silly mistake but I just cant see whats wrong... doh