i have this line of code can someone tell me what is wrong with it it sends the form if there is nothing written in the form box
i am trying to send an error message if there is nothing written in the box
and send the form if there is something written in the form text box
if($_POST['formSubmit'] == "Submit")
{
$visitor = $_POST['visitor'];
}
if(empty($visitor))
{
echo "<li>You forgot to enter a name!</li>";
}
can any one help please
cheers