fbm247 Posted May 1, 2009 Share Posted May 1, 2009 Hi, I was wondering if anyone knows of any good guides or places i can learn how to do a form which when the visitor selects checkbox options it calcualtes a price for them. For example base price for a PC is $150 checkbox options add memory $20 add graphics card $40 upgrade processor $60 When they select the checkboxes the price is added up. I seen it on this website but have no idea where to start http://getmefast.com/ Scroll down on the home page and you will see the form in a yellow box, I want to offer something like this to my customers so they can customise PC components on the site and get a price for the PC they created depending on parts they selected. Idealy i want the price to be calculated in real time without them havign to click a calculate price button which i guess is javascript mixed in with PHP on the form, not really sure so any pointers will be great. Cheers Link to comment https://forums.phpfreaks.com/topic/156418-calculate-price-when-checkbox-selected/ Share on other sites More sharing options...
Ken2k7 Posted May 1, 2009 Share Posted May 1, 2009 You need JavaScript. Link to comment https://forums.phpfreaks.com/topic/156418-calculate-price-when-checkbox-selected/#findComment-823536 Share on other sites More sharing options...
fbm247 Posted May 1, 2009 Author Share Posted May 1, 2009 Anyone know of any free scripts which can be used for the javascript side of i see from the source code on that website they have a value assigned to the checkbox which i assume is passed through the javascript to calculate the price. I guess i need to find an exampel script which i can look through and try to understand how it works so if anyone knows a link to a free script i can copy and edit please post. Cheers Link to comment https://forums.phpfreaks.com/topic/156418-calculate-price-when-checkbox-selected/#findComment-823544 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.