Jump to content

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.

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.