Contact

<<Back to Main Menu

Description:
Processes the Contact Form to send an email to AerWeb

Accessible by:
All users

Accessed from:
Contact Form

Input parameters:
name
email
message

Output:
Success message
Error message and Contact Form if there are any errors.

Pseudo Code:
get/create session
get form parameters
if (there's a 'username' param in the session) {
   get user's real name and email address from the database
}

validate form
if (form parameters are in the correct format) {
   send email
}
else {
   print the Contact Form with an error message
}
send email