well, the concept is clear, but i need help on organizing the codes. i would love to increase my points if u can show me the exactly code. thanks a lot!
Main Topics
Browse All Topicsi want to design 3 drop down that will dependent each other. the selection of first drop down menu will change the second drop down menu's option, and the second drop down menu will change the third drop down menu's option. And the last, when select the thrid drop down menu will show the related information in the page. The options of each drop down menu will query the information from the mysql database on a server.
here is more detail info:
the first drop down menu will contain different type of vsia services, such as student visa, business visa, crew visa, travel visa
the second drop down menu will contain different entry type (how many times can visa will be used), such as single entry, double entry, and mutilple entry
the third drop down menu will contain different processing service (how long the visa will be processed), such as regular( one week), express(3 days), rush(same day)
and after all the selection are being made, the corresponding price will be shown, and finally the service and price will be added into shopping cart.
example like, student visa with single entry and regular process service cost 59 dollars, or business visa with double entry and express process service cost 109 dollars.
how to use php and mysql design this project that after all the selection are being made, it will be added into shopping cart, which into order table. I hope i explain the issue clear and easy to understand. thanks for the help!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: D4LyPosted on 2005-12-07 at 15:54:48ID: 15440959
You would need to populate dropdown #1 with the options from your database when the page initially loads. A loop would run for each record, writing the necessary data for that record as an option in a select menu. Then, you would use a javascript call for that dropdown to submit the form
something like:
"onselect=this.submit"
which would post the selected data back to this same php page. Now, with the choice from dropdown #1, a query to the database to populate dropdown #2 would take place, looping through the records the same way. Then, you would use another javascript call for that dropdown...
The same thing would again happen for the 3rd dropdown, and the looped option generation by rows would now give values corresponding to your different price plans.The javascript call would instead submit the selected data to some addtoshoppingcart.php page this time, which would add your data into the mysql orders table.