I want to input a value in html using text box forms and then want to output...

kafu

New member
...those values in same pag?how? I want to input values in text box and display those values in the same page after doing some arithmetic . Can I do this in HTML?? what is the simplest way to do this??
 
no u need php
example:
NEED PHP ON SERVER
lolmath.php
<html>
<body>
<?php
$h=$__POST['value'] * 7 + 5 / 2;
print $h . 'is ur number!';
>
<form action='lolmath.php' method='post'>
<input type=text name='value' />
<input type=submit />
</form>
</body>
 
Back
Top