Mariko
07-12-2005, 03:12 AM
I need to search an array with multiple arrays inside it, like this:
blah = new Array (
new Array("package type", 10, 30, "allvisitors", 7, "double"),
new Array("package type", 20, 60, "highmembers", 10, "none")
)
The user is given six questions, all of them optional. Here are the questions:
1. What kind of campaign would you like?
(checkboxes, default is all selected)
2. What is your budget range?
(textbox "low") to (textbox "high") // default for "low" is 0, default for "high" is 600
3. How many impressions would you like?
(textbox)
4. What is the quality of traffic you would like?
(drop-down list)
5. How long in days would you like your ad to run?
(textbox)
6. Would you like to see campaigns that are on sale?
(radios, one for "no", one for "yes", one for "only ads on sale")
Upon submission, the array gets searched based on what they entered, and returns with an on-the-fly table displaying the short information for each matching ad package. The package name will be a link which will "show" a hidden div below that table that contains more information on the package and ordering information.
Basically, I'm taking what's on www.dimesofdozen.com/advertise.php and making it searchable. I don't care how we do this, I just want it done! The packages that are on that page are just the tip of the iceberg - there are many many more packages I need to add. However, I wanted to wait until I had some way of making that page shorter before going ahead and putting all the packages on the page.
Thanks so much! Any questions, I'm available to answer!
blah = new Array (
new Array("package type", 10, 30, "allvisitors", 7, "double"),
new Array("package type", 20, 60, "highmembers", 10, "none")
)
The user is given six questions, all of them optional. Here are the questions:
1. What kind of campaign would you like?
(checkboxes, default is all selected)
2. What is your budget range?
(textbox "low") to (textbox "high") // default for "low" is 0, default for "high" is 600
3. How many impressions would you like?
(textbox)
4. What is the quality of traffic you would like?
(drop-down list)
5. How long in days would you like your ad to run?
(textbox)
6. Would you like to see campaigns that are on sale?
(radios, one for "no", one for "yes", one for "only ads on sale")
Upon submission, the array gets searched based on what they entered, and returns with an on-the-fly table displaying the short information for each matching ad package. The package name will be a link which will "show" a hidden div below that table that contains more information on the package and ordering information.
Basically, I'm taking what's on www.dimesofdozen.com/advertise.php and making it searchable. I don't care how we do this, I just want it done! The packages that are on that page are just the tip of the iceberg - there are many many more packages I need to add. However, I wanted to wait until I had some way of making that page shorter before going ahead and putting all the packages on the page.
Thanks so much! Any questions, I'm available to answer!