1.

Solve : strlen($_POST["name"]>10) not working?

Answer»

Dear Friends,

I am NEW to forum and have a problem with my PHP learning. Please anybody tell me why this command is not working the way I want:

if (strlen($_POST["userid"])>10)

echo "User id should be less than 10 characters";

else
echo "Form ACCEPTED";

?>

Please tell me what's wrong with this coding. The PAGE is not showing ANYTHING at all.

Thanks in advance.

Regards.hey, It is working now with this code:

if (strlen($uid)>10)
echo "User ID cannot greater than 10 characters";
else
echo "Form Accepted";
?>

Thank you guys for viewing my problem. If you people have any other better solution, please tell.

Thanks.



Discussion

No Comment Found