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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

read value from drop down menu into variable and then insert into dB

Status
Not open for further replies.

Payal80

IS-IT--Management
Nov 29, 2003
8
US
hi!
i have a drop down menu which has 4 values. When i click "sublit" on this form, i want the value selected in the drop down menu to be fed into the database. how do i read the selected value into a variable?
eg in php i do it this way:
if the name of the drop down is "select" then we can access the value selected by:
'$select'
how do i do the same in php?
yhanks in advance
 
sorry..
rephrase qs;
how do i do the same in ASP? thanks
 
mystring=request.form("select")
the above if you use method=post in your form
if you use method=get then you want mystring=request.querystring("select")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top