Question: How can I add dropdown box to website? I want visitors to be able to select which state they live in from a drop down and when submit button is pressed i want info to be tallied and updated in a "results" table.

Answer: what development language/environment you're using or is it just html\n\n\nEDIT : The best thing to do in this situation is to use a server side language such as asp or asp.net. Here is a rough example using a simple form and javascript: \n<html>\n<head>\n<script language="javascript">\nfunction DropboxChange()\n{\n  var SelectedState = document.Form1.state.value;\n  //the line above gets the value that is selected by the   user and stores it in a variable selected state.\n\n}\n</script>\n</head>\n<body>\n<form id="Form1" method="post">\n<SELECT id="state" onchange="DropboxChange()">\n   <OPTION selected value=""></OPTION>\n   <OPTION value="State1">State1</OPTION>\n   <OPTION value="state2">state2</OPTION>\n</SELECT>\n</form>\n</body>\n</html>\n\nfrom here you can then submit the selected value to the server; do a query in your database based on the selected state and increase its value by 1.\n\nhope this helps
This question from the Yahoo Q&A forum is categorized in the topic: Entertainment & Music