HTML show data from external source based on selected dropdown lists

alreadyinuse23

New Member
I am building a website for a print shop, and we sell products that have lots of variables.For instance business cards, you can select: amount, print in black, print-full colour, specify paper etc. The options you choose from these drop-down lists determine the total price.I can easily put together a table or spreadsheet, for instance a .csv file or some other file that has all of the possible choices and prices that go with those choices layed out.Now I just need a way to display the price, based on the choices the user makes.For instance, my first drop-down list has the following amount options: 100 pieces, 200 pieces, 500 pieces and 1000 pieces.My second drop-down list has the following print options: Black one-sided, Black double-sided, full-colour one-sided, full-colour double-sided.My third drop-down list has the following paper options: White 200 grams, Yellow 200 grams, White 300 grams, Yellow 300 grams.Example: A user chooses 500 pieces, full-colour two-sided and White 300 grams paper.Below the drop-down lists the price which belongs to those choices should be displayed.Question 1: Can you help me build this?(I have some knowledge of html, but none of JavaScript or PHP,so some example code on how to build something like this would be greatly appreciated)Question 2: What would be the best file format to store my price information in? Since it needs to be web compatible.
 
Back
Top