Edit Hotel

<<Back to Main Menu

Description:
Processes an Edit Hotel Form to change the details of a hotel in the database.

Accessible by:
Managers

Accessed from:
Edit Hotel Form

Input parameters:
Hotel ID
Hotel Name
URL

Output
Success message
Failure message and Edit Hotel Form if there's an error

Pseudo Code:
get/create session
if ('usertype' param in session == 'm') {
   get parameters from the form
   if (parameters are in the correct format) {
      update hotel details in the DB     
      display success message
   }
   else {
      display error message and Edit Hotel Form
   }
}
else {
   error message to say user must be a manager
}