Maths functions in Frontpage

  • Thread starter Thread starter Wayne-I-M
  • Start date Start date
W

Wayne-I-M

Hi

Not sure how to approch this on a website form (asp)
I would like to have 2 combos (dropdown box)
Box 1 = 1 to 7 (called Feet)
Box 2 = 1 to 12 (called inces)
That AfterUpdate event (not sure if thats how frontpage work by the way ??)
would set the value of a text box on the same form.

something like
Format(((([Feet]*12)+[Inches])*2.54),"0") & "cm")
I know this will not work in frontpage but just an example

Basically trying to get people to input their height in feet and inches and
then get the CM's

Any ideas would be really kind.

Thank you
 
Its OK, I worked it out


<FORM>
<INPUT TYPE="TEXT" NAME="Feet"> ft
<INPUT TYPE="TEXT" NAME="Inch"> inches
<INPUT TYPE="BUTTON" VALUE="=" onClick="this.form.TheCMs.value =
((((this.form.Feet.value - 0)*12) + (this.form.Inch.value - 0))*2.54)">
<INPUT TYPE="TEXT" NAME="TheCMs">
</FORM>
 
Back
Top