sccot Posted July 14, 2011 Share Posted July 14, 2011 Hi all I'm new to php and i want to build small application in form with option type drop-down field with structure like this: type of products -> quantity range ---> show price for example i select product 1 then quantity range 500-1000kg i need to show price £12/kg and for different product and range price is different.. can anyone give a lead how to this to show this immediately on website and not submitting over a server. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/241987-small-application-help/ Share on other sites More sharing options...
freelance84 Posted July 14, 2011 Share Posted July 14, 2011 You can store all the possible prices in a js file. Or You could store all the possible prices in the head of the HTML file. Would be better, safer, and more efficient to store them in table on a database though, using either AJAX or a basic complete form submission to get the price. Link to comment https://forums.phpfreaks.com/topic/241987-small-application-help/#findComment-1242740 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.