Maths functions in Frontpage

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
 
W

Wayne-I-M

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top