Edit Hotel Form
<<Back to Main Menu
Description:
Displays hotel's existing information in an Edit Hotel Form for editing
Accessible by:
Managers
Accessed from:
View Hotels
Input parameters:
hotelID
Output
Edit Hotel Form, or error message
Pseudo Code:
get/create session
if ('usertype' param in session == 'm') {
get parameters from the form
if ((the 'hotelID' param is set)AND(it's in the correct format)) {
get the hotel's details from the database
if (the hotel exists) {
display Edit Hotel Form
}
else {
display error message
}
}
else {
display error message
}
}
else {
error message to say user must be a manager
}