Posting combo box values
Hello,
When are hard code :
tickets = 1000
into my page, the code counts the database for values and an IF statement checks if the value is greater than tickets then write a message. It all works fine 
But when i have a different page and construct a form it does not seem to function correctly.
Code:
If CInt(availabilityRS("TicketCount")) > tickets Then
Response.Write "There are enough tickets in the DB"
ElseIf CInt(availabilityRS("TicketCount")) < tickets Then
Response.Write "There are not enough tickets in the DB"
End If
I also have this on my page:
Code:
tickets=request.form("tickets")
which should retrieve the value from the combo box and put it in memory.
When i response.write what is in 'tickets' i get the correct number, so i think the IF statement doesn't fire properly..?
Any ideas?
Centurion, February 15th, 2010 01:30 PM
Bookmarks