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!

Passing form data to ASP code in the same page

Status
Not open for further replies.

shaunk

Programmer
Aug 20, 2001
402
AU
I am building a footy tipping website.
I have an ASP page that is mostly html form entry/validation code and some VBscript/ASP code to access a D/B to display the Round's games.

On initial load, the page is not intended to display the rounds, but on selection of a round by the user, I wish to pass the round number to the SQL string and refresh the page with the games for the round.

I am having trouble passing the Form value to the server code that accesses the D/B.

 
POST the form values and use request.form to capture the incoming values.

Code:
dim varName

if request.form("form_item_name") <> ""
   varName = request.form("form_item_name")
else
   varName =  some_default_value
end if

'  do your db processing after this.



Chris.

Indifference will be the downfall of mankind, but who cares?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top