How to get data from html form using php

How to retrieve and show html form inserted values in php.

This tutorial is one of the most basic php development learning tutorial because in this tutorial we are simply creating an HTML input form with submit button and all we are doing in this project is when developer clicks on submit button then with the help of php coding we are retrieving input form value and show the entered value on screen. So here is the complete step by step tutorial for How to get data from html form using php.

http://www.mediafire.com/download/7143tpm1m35c6na

How to get data from html form using php.

android-project-download-code-button

Code for get-html-form-data.php file.

 <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>How to get data from html form using php</title>
</head>

<body>

<table>
<form action="" method="post">
<tr>
<td> Name: </td><td><input type="text" name="name"></td>
</tr>
<td><input name="submit" type="submit" /></td></tr>

</form>
</table>

<?php
 if (isset($_POST['submit'])) {
 $NAME = $_POST["name"];
 
 echo "Name is = ". $NAME .'</br>';
 
 }
 ?>

</body>
</html>

Screenshot:

How to get data from html form using php

Click here to download How to get data from html form using php project file with source code.

Leave a Reply

Your email address will not be published. Required fields are marked *