Download
    Interview Question     &Answer
Main Menu
PHP Get/Post@ Shwetank education.com
PHP Get Method
The inbuilt $_GET variable is used to collect values in a form with method="get".
Syntax
$_GET[''];

Example Get Method
<form action="sweta.php" method="get">
Name: <input type="text" name="nme" />
Password: <input type="password" name="pwd" />
<input type="submit" />
</form>


PHP Post Method
The inbuilt $_POST variable is used to collect values in a form with method="post".
Syntax
$_POST[''];

Example POST Method
<form action="sweta.php" method="post">
Name: <input type="text" name="nme" />
Password: <input type="password" name="pwd" />
<input type="submit" />
</form>


Basic Example PHP code In Post method
<?php
if(isset($_POST['btn']))
{
$name=$_POST[nme];
$password=$_POST['pwd'];
}
?>

$_REQUEST Method
$_REQUEST method can be use both handling get and post method. Request method are send a request to a server.
Note*


IT  Projects Links
M-Tech Thesis
Php Project
Java Project
Asp.Net Project
Android Project
Vb .Net Project
Html Project

------------------------------- Electronics  Project
Networking
Embedded system
Telecom
Robotics
CCNA
------------------------------- Latest IT  News


Copyright 2010-2015    shwetankeducation.com
Privacy & Terms