multimedia festival registration. creation of database tables student table project table criteria...
DESCRIPTION
Input Validation for Important Fields Error message provided for missing fields. Regular Expression validation for ID & Phone Number.TRANSCRIPT
Multimedia Festival Registration
Creation of database tables Student table Project table Criteria table
Input Validation for Important Fields Error message provided for missing fields. Regular Expression validation for Email ID
& Phone Number.
US Phone Number ValidationIf ($phone ne "") { if ($phone !~ /^\((\d{3})\)|(\d{3})-?(\d{3})-?(\d{4})$/) { $validphone = 1; }}
Email Validationif ($email ne "") { if ($email !~ /^\w+([\-+.]\w+)*@\w+([\-.]\w+)*\.\w+([\-.]\w+)*$/) { $validemail = 1; }}
Example: [email protected]
Matches name before @ symbol
Matches email domain name
after @ symbol
Matches email domain suffix
(.com, .net, etc.)
Insert data into database Checks if the user is already present using
the Mail ID If the user is already registered inserts data
into project table as new project Else inserts data into project table and
student table.
Future Considerations Create a two tier application as data tier
and presentation tier. Data tier - connecting from database and
creation of tables . Presentation tier – creating the form and
providing input validation.