PHP $_POST['var'] / $var empty problem?

jack

New member
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!
 
Back
Top