Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add new values into Dropdown?

Status
Not open for further replies.

jgoodman00

Programmer
Jan 23, 2001
1,510
I have a dropdown box which gets its values from a db table.

I need to give users the ability to add new entries to the dropdown.

What is the simplest way of doing this?



James Goodman MCSE, MCDBA
 
[tt]
1. Create a edit page with the field you need
2. Create an asp page what will do the insert into the DB

3. After inserting, redirect the user to the page with the drop-down.


 
After the insert you can Response.Redirect "yourPage.asp" to redirect back to the page (if you haven't output anything in the insert page).

-T

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
[tt]
<%
response.redirect &quot;your_drop_down_page.asp&quot;
%>

at the end of the processing page should take care of it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top