Input Output in PHP

by Hiroshi on June 19, 2008

in Form, Input, PHP Basics

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">

Input.php Code – Displaying Input

echo "$getvar";

Related Posts

Previous post:

Next post: