1. able2know
  2. » HTML/ASP checkbox handling help please
2
   

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
No replies

 

 
  1. able2know
  2. » HTML/ASP checkbox handling help please
Copyright © 2008 able2know :: Page generated in 0.11 seconds on 12/01/2008 at 03:31:00 :: Active ingredients: LAMP, XHTML, CSS, JavaScript
Top End