Add Hotel

<<Back to Main Menu

Description:
Processes an Add Hotel Form to add a new hotel to the database

Accessible by:
Managers

Accessed from:
Add Hotel Form

Input parameters:
Hotel Name
URL
City

Output
Success message.
Add Hotel Form if form isn't filled in properly.

Pseudo Code:
get/create session
if ('usertype' param in the session == 'm') {
   get parameters from the form
   validate form
   if (params are in the correct format) {
      add Hotel data to the database
      display success message
   }
   else {
      display Add Hotel Form with an error message
   }
}
else {
   error message to say user must be a manager
}