multimedia festival registration. creation of database tables student table project table criteria...

7

Click here to load reader

Upload: holly-nichols

Post on 18-Jan-2018

216 views

Category:

Documents


0 download

DESCRIPTION

Input Validation for Important Fields Error message provided for missing fields. Regular Expression validation for ID & Phone Number.

TRANSCRIPT

Page 1: Multimedia Festival Registration. Creation of database tables Student table Project table Criteria table

Multimedia Festival Registration

Page 2: Multimedia Festival Registration. Creation of database tables Student table Project table Criteria table

Creation of database tables Student table Project table Criteria table

Page 3: 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.

Page 4: Multimedia Festival Registration. Creation of database tables Student table Project table Criteria table

US Phone Number ValidationIf ($phone ne "") { if ($phone !~ /^\((\d{3})\)|(\d{3})-?(\d{3})-?(\d{4})$/) { $validphone = 1; }}

Page 5: Multimedia Festival Registration. Creation of database tables Student table Project table Criteria table

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.)

Page 6: Multimedia Festival Registration. Creation of database tables Student table Project table Criteria table

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.

Page 7: Multimedia Festival Registration. Creation of database tables Student table Project table Criteria 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.