Question: HTML/Javascript I have to create a user login. Attached above is the simple HTML code I made that sets up the login and I have

HTML/Javascript

HTML/Javascript I have to create a user login. Attached above is the

I have to create a user login. Attached above is the simple HTML code I made that sets up the login and I have to make a login script in javascript. The login script has 2 functions that are called Validate and Verification.

Validate function:

INPUT: HTML Form that needs to be validated

PROCESS: Validates that all required information exists: Patron Name, Patron ID and Patron Email Address (if required). The Patron ID must also be an 8-digit numeric value and the Patron Email Address must contain an @ and a period. Alerts the user about invalid data and its location. If all input is valid, alerts the user as to whether or not the user is found within the system.

OUTPUT: Alert the user to correct the particular error in the appropriate box if necessary

Verification function:

INPUT: HTML Form with Patron Name and Patron ID

PROCESS: Compares the form's Patrons Name and Patron ID with the properties of a patron object stored in a global array of patrons (for this exercise create an array of 6 patrons). Returns true if it finds the patron object matches both.

OUPUT: Simple welcome message

I've been having a lot of trouble getting the javascript functions to work so I'd like to see what someone else does so I can correct mine. Please keep it as simple as possible. Any help greatly appreciated.

HLHC User Login
Patron Name: kinput type-"text" name-"patronname" id- "PatronName"/> Patron ID: kinput type-"text" name-"patronid" id-"PatronID"/> Patron Email: kinput type-"checkbox" name-"emailconformtaion"> Email me a transaction conformation

Select a transaction: kselect id-"myselect"> Koption Schedule a class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!