Articles → PHP → Get and Post in PHP

Get and Post in PHP
















Software requirement









Technical knowledge











What is the difference between get and post?















Get








<html>
  <body>
<?php
 echo($_GET["mode"]);

?>
  </body>
</html>







Post






<html>
<head>
<title></title>
</head>
<body>
<?php
if(!empty($_POST["name1"]))
{
     echo($_POST["name1"]);
 } 
?>
<form method="post">

  Name:<input type="text" name = "name1"> <br>
  <input type="Submit" value="Submit">
</form>
</body>
</html>





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, November 12, 2014

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250