catchup
07-27-2003, 07:45 PM
I have a form.asp that has check boxes i post this fom to results.asp How in results.asp can i create an array of the request.form variables that have been submitted with a value, and create a sql to pull records from the db.
form.asp:
checkboxes names/value
a1/1
a2/2
a3/4
a4/4
a5/5
a6/6
a7/7
a8/8
a9/9
a10/10
a11/11
a12/12
a13/13
a14/14
Access DB
column name/value
bc/British Columbia
ab/Alberta
sk/Saskatchewan
mb/Manitoba
on/Ontario
pq/Quebec
ns/Nova Scotia
nb/New Brunswick
nfl/Newfoundland
pei/Prince Edward Island
yk/Yukon
nwt/Northwest Territories
nu/Nunavut
How the two data sets are joined
-form.asp if a1 selected display records on results.asp where bc has a value
-form.asp if a2 selected display records on results.asp where ab has a value
-form.asp if a3 selected display records on results.asp where sk has a value
-form.asp if a4 selected display records on results.asp where mb has a value
-form.asp if a5 selected display records on results.asp where on has a value
-form.asp if a6 selected display records on results.asp where pq has a value
-form.asp if a7 selected display records on results.asp where ns has a value
-form.asp if a8 selected display records on results.asp where nb has a value
-form.asp if a9 selected display records on results.asp where nfl has a value
-form.asp if a10 selected display records on results.asp where pei has a value
-form.asp if a11 selected display records on results.asp where yk has a value
-form.asp if a12 selected display records on results.asp where nwt has a value
-form.asp if a13 selected display records on results.asp where nu has a value
-form.asp if a14 selected display allrecords on results.asp
Things need to be done in a way so that what ever is selected on form.asp (1 selection or multiple selections), results.asp has a sql that pull that the records. so i assume its a dynamic sql formed by the form.asp values AND the records where there is value in the corellating form.asp to column name.
I hope that makes sense. Thanks. I have it done so that i have a bunch of if statements with correlating sql statements and with html to display the data formated to the page. So far my results.asp page is huge and hard to work with, with so many if statements to satify every condition, and so much html segments.
Thanks again!
form.asp:
checkboxes names/value
a1/1
a2/2
a3/4
a4/4
a5/5
a6/6
a7/7
a8/8
a9/9
a10/10
a11/11
a12/12
a13/13
a14/14
Access DB
column name/value
bc/British Columbia
ab/Alberta
sk/Saskatchewan
mb/Manitoba
on/Ontario
pq/Quebec
ns/Nova Scotia
nb/New Brunswick
nfl/Newfoundland
pei/Prince Edward Island
yk/Yukon
nwt/Northwest Territories
nu/Nunavut
How the two data sets are joined
-form.asp if a1 selected display records on results.asp where bc has a value
-form.asp if a2 selected display records on results.asp where ab has a value
-form.asp if a3 selected display records on results.asp where sk has a value
-form.asp if a4 selected display records on results.asp where mb has a value
-form.asp if a5 selected display records on results.asp where on has a value
-form.asp if a6 selected display records on results.asp where pq has a value
-form.asp if a7 selected display records on results.asp where ns has a value
-form.asp if a8 selected display records on results.asp where nb has a value
-form.asp if a9 selected display records on results.asp where nfl has a value
-form.asp if a10 selected display records on results.asp where pei has a value
-form.asp if a11 selected display records on results.asp where yk has a value
-form.asp if a12 selected display records on results.asp where nwt has a value
-form.asp if a13 selected display records on results.asp where nu has a value
-form.asp if a14 selected display allrecords on results.asp
Things need to be done in a way so that what ever is selected on form.asp (1 selection or multiple selections), results.asp has a sql that pull that the records. so i assume its a dynamic sql formed by the form.asp values AND the records where there is value in the corellating form.asp to column name.
I hope that makes sense. Thanks. I have it done so that i have a bunch of if statements with correlating sql statements and with html to display the data formated to the page. So far my results.asp page is huge and hard to work with, with so many if statements to satify every condition, and so much html segments.
Thanks again!