I have tried different things to calculate numbers, including using javascripts, but can't get the result I want.
I would like to calculate (in php) this form so that what ever the user does, it will produce the number in KW (kilowats) to be stored in the database. It means that the user types in a number (like 120) and selects HP (horsepower). When the user presses the form button, I want PHP to calcultate what 120 HP is in KW's.
Here is part of the form:
Personally, I use http://www.onlineconversion.com/power.htm to convert.<tr><td align="left" valign="top">Power/td>
<td>
<input name="kw_hp" type="text" id="kw_hp" value="<? echo $kw_hp; ?>" maxlength="25" /> <input type='radio' id="kw_hp_sel" value='1' name='kw_hp_sel' <?php if($kw_hp_sel == "1"){echo "checked";} ?> />KW <input type='radio' id="kw_hp_sel" value='2' name='kw_hp_sel' <?php if($kw_hp_sel == "2"){echo "checked";} ?> />HP
</td></tr>
Someone?



/td>




Bookmarks