Jump to content

[SOLVED] Validation of Age


TheJoey

Recommended Posts

I currently have this.

	  if ($age <16 && $age >90) $errorAge = true;

Although it doesnt display any error for age althought if i want to test the code and put

 

        if (strlen($age)<1) $errorAge = true; 

it displays the error i want.

So im guessing its the validation technique im trying to use.

Link to comment
https://forums.phpfreaks.com/topic/173386-solved-validation-of-age/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.