I’m being pressured to set up a website for the shop I work at since I know a little about coding and web design. However, my boss wants me to design a page where people can put in measurements for banners (we make banners and signs, and he wants to sell blank banners online) and get a quote on them back. I actually know very little about javascript, but I’ve seen just about every piece of information in regards to the coding that can do this. I just don’t know how to put everything together to make it all work. Basically what I need is a piece of code that multiplies three numbers, two being changeable and one being fixed, and displays the output when the form is filled out and the submit button is pressed. I would definitely appreciate some help on this matter. My job may be at stake.
Here is the javascript that I have. How do I get the numbers involved to take on the value that would be entered into a textbox?
[code=php]<head>
<script type=”text/javascript”>
function total(numberA,numberB)
{
return numberA * numberB * .50
}
</script>
</head>
<body>
<script type=”text/javascript”>
document.write(total(1,2))
</script>
</body>