Create a html form with test.html
You can use code below to create a html form in test.html.
<div> <form id="form1" method="post" action="process.php"> <p>webiste: <input type="text" name="website" value="tutorialexample.com" /></p> <p><input type="submit" value="submit" /></p> </form> </div>
In this form, we will submit a webiste to a process.php file with http post method.
Here is an example.
You should copy and paste this example code in front of html form.
Submit html form
You shoud copy and paste this example code at the end of htm form.
Create process.php file
<?php print_r($_POST); ?>
Copy and paste code above in process.php
Open test.html by your browser
You will find output like:
Array ( [website] => tutorialexample.com )