<?php require_once 'config.php'; require_once 'recording.php'; if (isset($_POST['create'])) { $created = new Recording($_POST['title'], $_POST['version'], $_POST['language'], $_POST['narration_type'], $_POST['running_time'], $_POST['zip_file_size'], $_POST['catalog_date'], $_POST['website_link']); $created->create(); } elseif (isset($_POST['delete'])) { $deleted = new Recording($_POST['id']); $deleted->delete(); } elseif (isset($_POST['update'])) { $updated = new Recording($_POST['title'], $_POST['version'], $_POST['language'], $_POST['narration_type'], $_POST['running_time'], $_POST['zip_file_size'], $_POST['catalog_date'], $_POST['website_link'], $_POST['id']); $updated->update(); } elseif (isset($_POST['find'])) { $searched = new Recording($_POST['title']); $searched->find(); } elseif (isset($_POST['list'])) { $listed = new Recording(); $listed->recording_list(); } else { echo 'Please enter information into the form.'; } ?> <html> <head> <title>LibriVox Recordings</title> </head> <body> To CREATE a New Recording Entry in the Database:<br/><br/> <form method="POST" action="">