Log in

View Full Version : change value of hidden input



brandon14
03-21-2008, 06:11 PM
Ok so I have an order form that needs to be able to change the value of a hidden form, based on the number of products someone orders. So for example, someone will be asked for contact info, address, etc... then when they get to the "how many signs would you like" section, I need them to be able to enter a number and have it dynamically show them a price AND change the hidden value to that price before submitting the info to a secured server. I was looking around and thes should be possible with a simple javascript, but I'm not sure how to do it. The pricing will actually be broken down like this:

1-100 = $25.00 x the amount of signs entered
101-500 = $20.00 x the amount of signs entered
500 or more = $15.00 x the amount of signs entered

So there will actually need to be some structure based on the amount of signs. Any help would... HELP... thanks

Zachary8222
03-31-2008, 07:27 PM
Looks like you might need php aswell, maybe some ajax to do some refreshing, well that might be server intensive... Post this in the Javascript forum....