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

Form count

Status
Not open for further replies.

LOW

Programmer
Sep 27, 2000
45
US
I'm creating an html form with one simple question and the option of selecting one of three answers (radio buttons). When submitted, I would like a popup that would display the correct answer (I can hard code that) and a running count of the number of times the form has been submitted. Is this something that can be accomplished using javascript?
 
Is this something that can be accomplished using javascript?
Yes - server side Javascript for ASP.

Traditional client-side javascript? I wouldn't even bother.

If you're keeping track of whether or not they get the right answer why would you wanna do that on the client's end? They could easily hit the view-page-source button and see what the answer is. And for keeping track of the number of times submitted - that's really something better suited for a server side session variable or cookie.

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top