Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 12th, 2004, 01:44 PM
Registered User
 
Join Date: Dec 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dayguard
Default Drop down poll

I need to make a drop down poll. I need to calculate the number of times each option is selected. I can only see the value of the item selected and not of the item previously selected.

<FORM METHOD="POST" ACTION="ProcessVote.asp">
<SELECT NAME="topic">
   <OPTION VALUE="INIT">Select your favorite topic</OPTION>
   <OPTION VALUE="a">a</OPTION>
   <OPTION VALUE="b">b</OPTION>
   <OPTION VALUE="c">c</OPTION>
   <OPTION VALUE="d">d</OPTION>
</SELECT>
<INPUT TYPE="Submit" VALUE="Vote">
</FORM>
------------------------

'only something like this so far

  if Request.Form("topic") <> "INIT" then
            Application(Request.Form("topic")) = Application(Request.Form("topic")) + 1
  else
     Response.Write "You did not make any selection."
  end if



 
Old December 12th, 2004, 02:33 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Cross post: http://p2p.wrox.com/topic.asp?TOPIC_ID=23380

Can you please not cross post your messages?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of Opinion Poll ssertial BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 October 26th, 2008 06:35 PM
TBH Hosting Poll rocco50 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 August 26th, 2007 03:12 AM
Bug in the Poll VB code? thuyvncr BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 April 21st, 2007 08:43 PM
HELP!! Drop down poll dayguard Classic ASP Basics 10 December 15th, 2004 07:33 PM
VB .net or ASP(browser based) / suggestion/poll iniro VB.NET 2002/2003 Basics 3 September 26th, 2004 10:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.