SEO Services
Home >>
Webmaster Forums >>
Need help with a formNeed help with a form
rickyjoreturns said: "I need to create a form which does calculations to determine a price.
For example:
Board Size
IF size A= $30
If size B= $20
Is size C= $40
and then I need each calculation (there will probably be three of them) to ad on to each other and a total price to be displayed at the bottom of the form.
This can be achieved with a dropdown menu or radio buttons, I would prefer the script be a XHTML or Javascript as opposed to PHP or something like that.
Can anybody give me a hand with this? I can edit values if somebody will hook me up with the basic script.
You guys are great :) thanks."
Neutron2k said: "you will need to create a function to handle the form when the user clicks submit.
[code]
[/code]
what are you planning on doing with the form when the calculations are worked out?"
Neutron2k said: "create the form for ordering and send it to me. I will write you a javascript function."
rickyjoreturns said: "Thanks! It may be a little bit, I've got to get in touch with the site owner first before I send an exact form :)"
rickyjoreturns said: "N2K, could you please do me a favor and write the script but comment it so that it will be easy for me to edit the values because I don't have any idea of the dollar amounts, but I think I know the catagories (I hope!). The numbers are not real, I'm just making them up.
Base price = $100
if board size = option a (c-d inches) + $0; if option b (a-b inches) + $10; if option c (x-y inches) + $20
If wheel type = a (brand X) + $0; if option b (Brandy Y) + $10; if option c (brandy z) + $20
Bracing = wood + $0; if bracing = other + $25
Does that make sense? This script is going to need a lot of editing and I would love to try and do it myself so please comment well if you choose to make me a script ^-^
Thanks in advance!"
Neutron2k said: "ill let you know when i can get this done dude. won't be for a week or so. quite snowed under."
rickyjoreturns said: "thanks :) no rush! And thank you again."