Apache web server tutorial - . Alignment (good or evil) . Powers .
. Alignment (good or evil) . Powers . Enemies You also need a character input form. This form will serve two purposes. It will allow you to create a new character, in which case the form will load with blank fields and a create button, or it will allow you to edit an existing character, in which case it will load with the fields filled in, and an update button. The form will also have a reset button that either clears the new form, or restores the edited form fields. A delete button should also be available when editing an existing character. The fields on your form will be as follows: . Character name (alias) . Real name . Powers (multiple select field) . Lair address, city, state, and ZIP . Alignment (radio button: good/evil, default good) . Enemies (multiple select field) You also need a form for adding and deleting powers. This form will be relatively simple and will contain the following elements: . A checkbox list of every power currently available . A Delete Selected button . A text field to enter a new power . An Add Power button You also need a PHP script that can handle all database inserts, deletes, and so on. This is called a transaction page, and it simply does a required job and redirects the user on to another page. This page handles all transactions for the character application (with redirect), including the following: . Inserting a new character (character listing page) . Editing an existing character (character listing page) . Deleting a character (character listing page) . Adding a new power (power editor page) . Deleting a power (power editor page) That s basically all there is to the application. Four pages (five if you count the config.php file you created earlier it will be used again) shouldn t be too difficult. You ll write them first, and then we ll talk about how they work. 290 Chapter 10
In case you need quality webspace to host and run your web applications, try our personal web hosting services.