hai guys
how to get the html text field enterd values using php code?
i have two text fields and one button ,when i press that button the out put will be
printed in same page.
the code is like this
<html>
<body>
<input type="text" name='data1'>
<input type="text" name='data2'>
<input type="button" value="click" >
</body>
</html>
<?php
$result=$data1+$data2;
echo "$result";
?>
but i am getting null value how to get that data1 and data2 values and how to use in php code?
please guide me
bye
Manju