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

querystring to function

Status
Not open for further replies.

bslintx

Technical User
Apr 19, 2004
425
US
Hey all,

New to asp. I had seen this before but not sure what keywords to search for. I have a few populated select boxes and then onchange it submits a form value through get method. How do you request("anyquerystring") to put in one sql statement with a where clause looking for that querystring in a database? Reason why is because I have a table with same data fields and I don't want to replicate for each request querystrings. I guess adding it to a function.
 

try this

Code:
sql ="Select * from dbTable where dbField = '"& Request.Querystring("formField") &"'"


hth

simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top