web 2.0

How to use PHP & Tag Form

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 Form
Example 2

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

PHP Form
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.