Jump to content

small application help


sccot

Recommended Posts

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

 

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.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.