3 conditions exist
condition 1 = page is loaded up initially
condition 2 = database has been selected
condition 3 = username is being added/deleted return to condition 2
the best way is to just use one page and check for these condition and execute the appropriate code. 3 pages are simply not required.
example:
pseudocode
Code:
if request.form("database") <> "" then
' set flag to select and display users from database
if request.form("delete") <> "" and request.form("selected") <> "" then
'run code to delete user
end if
if request.form("add") <> "" then
' run code to add the username
end if
else
' run code to show database list
end if
replace the element name with the one from your fields. make sure the "database" value is returned in a form element when delete or add is clicked.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|