Four ways to pass information between pages are:
Script | Explanation | Transitions |
init.asp | Create a global variable called "DBOpen." DBOpen holds a command string specifying the database driver and location. It is retrieved in other scripts if they open the database file. This script does not display anything, but transitions to roster_view.asp after initializing DBOpen. | Unconditional transition to roster_view.asp |
roster_view.asp | Display the roster using current database data. |
|
new_student.asp | This is a pure HTML form for new student field values. It contains no executable code. Note that a table is used inside the form to line up the captions and textboxes. |
|
write_new.asp | If the user enters a complete record, this script adds it to the database and transitions to roster_view. If there is missing data, it displays an error message and buttons for transition to either roster_view or new_student. |
|
student_del_confirm.asp | This script displays the name from the record to be deleted, and asks the user to confirm that action. |
|
student_del.asp | This script deletes record rID after the user confirms the action. It does not display anything, but transitions to roster_view.asp after deleting the record from the database. | Unconditional transition to roster_view.asp |