Sharp Tutorial
get post in php

Python

Java

C

C++

HTML/CSS

Java Script

PHP

SQL

C Programs

PHP Introduction

  • PHP home
  • PHP introduction
  • How to install and run
  • Syntax and Rule in PHP
  • Data type and operator
  • If else in php
  • Loop in php
  • Array in php
  • Sring in php
  • Function in php
  • Include in php

Working with Forms

  • Get and Post
  • Get Form input into PHP
  • Form Validation

PHP with MySQl

  • Connect PHP & Mysql
  • Insert using PHP Mysql
  • Select using PHP MySql
  • Delete Update using PHP Mysql
  • Login Page Example in PHP

Advanced PHP

  • Session in PHP
  • Cookies in PHP
  • File Handling in PHP
  • File Upload/Download PH

Object Oriented PHP

  • Class Obejct in PHP
  • Constructor in PHP
  • Destructor in PHP
  • Inheritance in PHP

get post in PHP

<form method=”get/post”> form method used to submit the data as request. main difference between get and post is get shows the parameter value in query string while post does not show that

If we do not write and method in <form> tag then by default get method is there.

Form using HTML with default(get) method

<html>
<body bgolor="gray">
<center>
<form name="login" action="login.php" >
userName<input type="text" name="user">
<input type="submit" name="ok" value="insert">
</form>
</center>
</body>
</html>

When we click on the button means submit the data it goes to action ie login.php and query parameter is displayed in output as follows

Form using HTML with post method

<html>
<body bgolor="gray">
<center>
<form name="login" action="login.php" method="post" >
userName<input type="text" name="user">
<input type="submit" name="ok" value="insert">
</form>
</center>
</body>
</html>

When we click on the button means submit the data it goes to action ie login.php in the url no value is displayed because of the post method.

Enquiry about Course

Ask your Question

Click Here

Sharp (2) Tutorials

Video/ C Introduction

Watch video in full size

Video tutorial

Follow by Email
Facebook
Facebook
fb-share-icon
YouTube
Copyright © Sharp Tutorial
Build with WordPress
Wordpress Social Share Plugin powered by Ultimatelysocial
Sharp Tutorial