Edit Airport
<<Back to Main Menu
Description:
Processes an Edit Airport Form to change the details of an Airport in the database.
Accessible by:
Managers
Accessed from:
Edit Airport Form
Input parameters:
Airport Code
Airport Name
Output
Success message with link to View Airport
Failure message and Edit Airport 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 airport details in the DB
display success message with link to View Airport
}
else {
display error message and Edit Airport Form
}
}
else {
error message to say user must be a manager
}