I basically made a function as follows:
function verify( $text ) {
if ( !empty( $text ) )
return true;
else
return false;
this works great! but if I pass the variable $_POST['name'] for example that had an empty field when submitted; the function still seems to think that the $text variable isn't empty.
any help would be GREAT!
function verify( $text ) {
if ( !empty( $text ) )
return true;
else
return false;
this works great! but if I pass the variable $_POST['name'] for example that had an empty field when submitted; the function still seems to think that the $text variable isn't empty.
any help would be GREAT!