How to use PHP & Tag Form This tutorial how to using PHP and add tag <form> to PHP
ShotDev Focus:
- add tag <form> to PHP
Example 1
php_form1.php
<html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form action="php_post.php" method="post" name="form1"> <input name="txt1" type="text"> <input name="txt2" type="text"> <input name="btnSubmit" type="submit" value="Submit"> </form> </body> </html>
Create a php file and save to path root-path/myphp/
Run
http://localhost/myphp/php_form1.php
Screenshot
php_form2.php
<html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form action="php_post.php" method="post" name="form1"> <input name="txt1" type="text"> <input name="txt2" type="text"> <input name="btnSubmit" type="submit" value="Submit"> </form> </body> </html>
Create a php file and save to path root-path/myphp/
Run
http://localhost/myphp/php_form2.php
Screenshot