Jump to content

[SOLVED] Age restriction


TheJoey

Recommended Posts

this line needs to be changed to:

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

to make the errors go away...but it doesn't make sense, cus $age can't  be less then 16 AND greater 90...do you mean or?

     if ($age < 16 || $age > 90) $errorage = true;

this line needs to be changed to:

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

to make the errors go away...but it doesn't make sense, cus $age can't  be less then 16 AND greater 90...do you mean or?

     if ($age < 16 || $age > 90) $errorage = true;

 

yer i used those numbers as a example but yer i want the age to be between 16-90

 

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.