Hi,
I'm creating a website for an hotel and i need to know how to collect data from a drop down list then search in the database and display it in another page. the design is like this:
DropDownList1// view
DropDownList 2// capacity
DropDownList 3//price
RadioGroup //type of data sort (Rooms are sorted by price or by room number)
Button1
what I want to do is when I click the button, I collect all the data that the user chose in all the controls (DropDownList1, DropDownList 2,DropDownList 3,RadioGroup) and start to search with them in the database, for example if the user chose the sea view and the capacity 2 persons and the price between 10$ and 20$ sorted by price, I will display all the rooms with a sea view and capacity 2 persons and a price between 10$ and 20$, sorted by price.
please help,
Thanks :)
I'm creating a website for an hotel and i need to know how to collect data from a drop down list then search in the database and display it in another page. the design is like this:
DropDownList1// view
DropDownList 2// capacity
DropDownList 3//price
RadioGroup //type of data sort (Rooms are sorted by price or by room number)
Button1
what I want to do is when I click the button, I collect all the data that the user chose in all the controls (DropDownList1, DropDownList 2,DropDownList 3,RadioGroup) and start to search with them in the database, for example if the user chose the sea view and the capacity 2 persons and the price between 10$ and 20$ sorted by price, I will display all the rooms with a sea view and capacity 2 persons and a price between 10$ and 20$, sorted by price.
please help,
Thanks :)
Comment