I have the following code on a page to check if a form has been filled in correctly:
if(isset($_POST['submit'])){
if(!isset($_POST['message'])){
echo("The message has not been sent - you did not fill in the form correctly.");
}
//rest of php
}
yet for some reason, when nothing in the form is filled in, $_POST['message'] is set...
Am i doing something wrong? Ive done this kind of thing a bunch of times with no problems...😕