Call now


100% Job assistance






PHP Tutorial
PHP Tutorial PHP Example Javascript Tutorial Javascript Example JQuery Tutorial JQuery Example Ajax Tutorial Ajax Example About HTML Form Tag When w e create input box. check box, radio button etc. So this necessary to send these control value to the server. So Form tag is use to send these control value to the server. code:<form name="frm" action="test2.php" method="post"> your input box, check box etc here. </form> name :- name of the form action :- write page name on which page you w ant to send values. if you take action blank like action="" then values send on same page. method :- there are tw o method post and get. post send value to the server but values not show on URL. get send value to the server but values show on URL. Example 1:- Simple Form Tag Example <html> <head> <title>test1</title> </head> <body> <form name="frm" action="test1.php" method="post"> Enter Name<input name="name" type="text" /><br /> <input name="btnsubmit" type="submit" value="Submit" /> </form> </body> </html>

Form Tag

PHP Basic Concepts
PHP Introduction Variable in php if / switch statement Form Tag Loop Array Function

Database Insert Query Select Query Delete Query Update Query

PHP Advanced
Session Cookies Upload/Dow nload File/Directory GD Library Send mail PHP and XML $_SERVER

save this php script by name of test1.php. In this code w e use action="test1.php" then these control value send to test1.php page We reterive these value on test1.php page and can print it. Now make another page test1.php for reterive these values How to reterive value of Form tag. For reterive value of Form tag use super global variable $_POST['controlname'] w hen method is post on form tag. $_GET['controlname'] w hen method is get on form tag. Example 1:- PHP script to reterive form tag value. please save this file test1.php.

Class & Object Constructor & Destructor Inheritance Polymorphism Abstract Class and Interface PHP oops and Mysql

PHP Reference
PHP PHP PHP PHP String Function Array Function Mysql function Date function <html> <head> <title>test1</title> </head> <body>

When w e send value of the server w e check $_POST['controlname'] in isset function. ?> </body> </html> isset() isset function is very usefull w hen you send value to the server and reterive value.php <html> <head> <title>test1</title> </head> <body> <form name="frm" action="test2.php" method="get"> Enter Gender<input name="gender" type="radio" value="Male" /><br /> <input name="btnsubmit" type="submit" value="Submit" /> </form> </body> </html> test2. w hen we click on submit button then this variable exits on page and w rite code inside this section. This is a language construct and not a function.This show Text Box data without submit page echo will not pring $_post['city'] data. ?> </body> </html> Example 2:.PHP script to use of isset function. Now Why we use isset function and benefit of isset function. } ?> <html> <head> <title>Untitled Document</title> </head> <body> <form name="frm" action="" method="post"> <input name="city" type="text"><br> <input name="btnsubmit" type="submit" value="Submit" /> </form> </body> </html> when you click on Submit Then isset will do work.To use of get method Other Links Increas e Page Rank The Link Exchange link directory Interview Q/A PHP Development India Backlinks dallas pr agencies Seo service Chennai test1. if w e are not use isset function then code is run without submit the page. AT-M Ad Previous Next Home Courses Advertisement Post IT Job Contacts Links Design & Dev eloped by ittrainingonline . Example 3:. Now Look functiong of isset function isset function is use to check variable exists or not. This return true if variable exists otherw ise this return false. <?php if(isset($_POST['btnsubmit'])) { echo $_POST['city']. echo $gender.PHP Variable function PHP Math function M y SQL PHP Misc function Select query <?php $name=$_POST['name'].php <html> <head> <title>test2</title> </head> <body> <?php $gender=$_Get['gender']. if variable exits our code run otherw ise code not run. echo $name.

Sign up to vote on this title
UsefulNot useful