1
   

HTML/ASP checkbox handling help please

 
 
rshupe
 
Reply Wed 16 Jan, 2008 07:02 pm
Hello
I am working on a webpage that allows for a person to choose a bunch of options by checkboxes, and then when they select from a drop down box the page will reload with the search results based on the check boxes, with the boxes checked.
Checkboxes are handled in HTML
If-Then-Else and SQL statements are ASP
I have the logic for the SQL statements down, but I get one of two results:
1) check the box, reload, search is not refined
2) check the box, reload, then can't uncheck the box for another search
below is sample code:
-Make the checkbox
<INPUT TYPE="checkbox" NAME="iCom" Value<If>>.com Only
-in javascript save the variable for reload
function Search(){
var resubmitpage = "ImageListing.asp";
var iCom = document.CitySearch.iCom.value;
resubmitpage = resubmitpage + "?Days=" + Days + "&iCom=" + iCom + "&iHotels=" + iHotels;
location.href = resubmitpage;
}
-at top in page setup with asp
iCom = Request("iCom")

ANY help someone can give, or even a website that uses asp/html to do something similar would be GREATLY appreciated!! Have a good day all!
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 2,931 • Replies: 0
No top replies

 
 

Related Topics

In How much time a website can be developed? - Question by aussiejumpingcastle
Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » HTML/ASP checkbox handling help please
Copyright © 2019 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 10/14/2019 at 07:17:14