I am working with a form that returns a value to a textbox (gets a rate from ups and returns the value), using a javascript function. I have php variables that I am posting from the previous page. So here is what I am trying to do.
After the rate is returned I want to multiply the rate by a value passed in by php and have it returned to a separate text box. The problem is that I don't have a lot of experience with javascript. Here is the function that returns a value:
function set_rate(rate)
{
document.checkout.elements['rate'].value = rate;
document.checkout.elements['show_rate'].value = rate;
}
But I need to know how to pass in the php variable mulitply it by rate and have that value returned to another textbox.