My code is not responding as i want it to be? [closed]

use == operator for comparison instead of = because the second one is for assignment.

if ($_POST['man']== null )
{
print ('has no value');}
else {
print ($_POST['man']);
}

See PHP Comparison Operators

Leave a Comment