Learning & Integrating web technology and code help directory

How to use PHP & Tag Form

No comments
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

  1. <html>  
  2. <head>  
  3. <title>ShotDev.Com Tutorial</title>  
  4. </head>  
  5. <body>  
  6. <form action="php_post.php" method="post" name="form1">  
  7. <input name="txt1" type="text">  
  8. <input name="txt2" type="text">  
  9. <input name="btnSubmit" type="submit" value="Submit">  
  10. </form>  
  11. </body>  
  12. </html>  
Create a php file and save to path root-path/myphp/
Screenshot

PHP Form
Example 2
php_form2.php

  1. <html>  
  2. <head>  
  3. <title>ShotDev.Com  Tutorial</title>  
  4. </head>  
  5. <body>  
  6. <form  action="php_post.php" method="post" name="form1">  
  7. <input name="txt1" type="text">  
  8. <input name="txt2"  type="text">  
  9. <input name="btnSubmit" type="submit"  value="Submit">  
  10. </form>  
  11. </body>  
  12. </html>  
Create a php file and save to path root-path/myphp/
Screenshot
PHP Form
.
.



No comments :

Post a Comment