0% found this document useful (0 votes)
14 views1 page

PHP Validation Rules for User Categories

The document outlines PHP validation rules for four user categories in a web application. Each category has specific criteria for fields such as name, email, password, and phone number, including requirements for character types and formats. The validation logic should be implemented in a separate control file, with relevant error messages displayed for invalid inputs.

Uploaded by

tasikahmed101
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

PHP Validation Rules for User Categories

The document outlines PHP validation rules for four user categories in a web application. Each category has specific criteria for fields such as name, email, password, and phone number, including requirements for character types and formats. The validation logic should be implemented in a separate control file, with relevant error messages displayed for invalid inputs.

Uploaded by

tasikahmed101
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Continuation of your previous task Discuss among your group members and pick a

user category and Implement the PHP validation based on the corresponding
validation rule. Your HTML Form must be inside view folder and Create a seprate
folder name control and create a file name reg_control then write all the PHP
validation logic inside it. If user input does not meet validation criteria then show
relevant message.
User Category 1:
• Must contain only alphabets, include at least a uppercase letters
• Email Address field is required, and the input must contain @ and .xyz
domain
• Password field is required, and it must contain one numeric character
• Validate checkbox fields which user must check at least one checkbox.
User Category 2:
• Name Should be at least 4 characters
• Email Address field is required, and the input must contain [Link] domain
• Validate drop down/select fields which user must select one option.
• Phone Number field must contain only numbers
User Category 3:
• Name Should be Maximum 40 characters
• Password field must be at least 6 character long and it must contain one
Lowercase character
• Validate radio fields which user must check at least one radio button.
• Phone Number field must start with 0 and must be exactly 11 digits
User Category 4:
• Name field should not contain any numbers
• Password field is required and it must contain one of the special
character(@ or # or $ or &)
• Validate a Date type field where must enter a valid date
• Phone Number field must not be longer than 11 digits.

You might also like