Before users can visit the pages of Exploration Air's Frequent Flyer site, they must log on.
Users who already have a Frequent Flyer account use the Login.asp page
to enter their frequent flyer number and password. Once they click on the Logon button, the
form is checked to see if all fields are filled correctly using a function called
validate() written in JavaScript.
If the user has entered a valid number in the Account
Number field, the form is submitted to itself.
Login.asp then loads for a second time. Before it displays any HTML
it checks a hidden field in the form that was submitted and determines if this is a
submission request. Now the page sends the information received from the form to the
database by the use of a Visual Basic component called ExAir.Member. The component returns
a value to the page to approve the Account Number/Password combination or to reject it.
Based on this, the page either redirects the user to the Frequent Flyer Homepage, or displays a message
explaining that the password was invalid.
|
How to Logon
If you have just started using the Exploration Air sample site, there is only
one account setup. Here are the details:
Name: Katie Jordan
Account: 10001
Password: password
|
|