by Hiroshi on June 19th, 2008
Here is how we can post data by a form and display it at using PHP. Create two files index.html and input.php and copy this code in these and try.
index.html Code – Posting Form Data
<form name="form1" action="input.php" method="post"> <input name="name" type="text"> <input type="submit" name="Submit" value="Submit"> </form>
Input.php Code – Displaying Input
<?php $getvar=$_POST['name']; echo "$getvar"; ?>



Incoming Searches