When you say " ", do you mean that they are posting an empty form, or they are hitting the space bar and then submitting the form?
To combat the first you need something like this:
<?php
if($_POST[formSubmit])
{
if($_POST[formInput])
{
/* This is where you put the code you want to run using the inputs from the form. */
}
else
{
print "Please fill out the whole form";
}
}
else
{
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="input" name="formInput">
</form>
<?php
}
?>
To combat the second, you would need to use regular expressions, which Im not too hot on. Can anyone else help with this second bit?
Piers