I have the code above,Code:<?php if ( isset ($_POST['meter']) ) { $meter=$_POST['meter']; $yard=$meter*0.9144; } else { $meter=10000; $yard=9144; } ?> <form method="post"> <input type="text" name="meter" value="<?php echo $meter ?>"> meter<br> <input type="text" name="yard" value="<?php echo $yard ?>"> yard <input type="submit"> </form>
If I enter "meterNumber" in the input box "meter" and click the submit button,
"yardNumber" will be seen the input box "yard".
I like to make it like the following.
If I enter "meterNumber" in the input box "meter",
"yardNumber" will be simultaneously seen the input box "yard" without clicking the submit button.



Reply With Quote




Bookmarks