Skip to main content

PHP Forms

Using the HTML Form is very important in creating a PHP application, because it serves as a holder of information from a website's visitors and then use the PHP to process that information.

Heres the simple HTML Form.

The code below is a simple HTML Form with a two input boxes for Fullname, E-mail Address and a submit button. When the user click the submit button, the data in the form will be sent to the HTTP POST method to be processed in a PHP file called “processData.php”.
  4. <h1>Sample HTML Form</h1>&#13;
  5. <form action="processData.php" method="post">&#13;
  6. FullName:<input type="text" name="fullname" /><br />&#13;
  7. E-mail Address: <input type="text" name="email" /><br />&#13;
  8. <input type="submit" />&#13;
  9. </form>&#13;
  10. &#13;
  11. &#13;


Code for processData.php:

Add new comment