Just take the input value and run it by empty.
ex. Lets say your input field name is username.
After the form is submitted you can just use something like.
if ((empty($username))
{
//do something if is empty
}else{
//do domething else
}
is this what you are looking for.