---
title: "Post, Get and Request Function in PHP"  
description: "Post, Get and Request function plays an important role in passing value from one form to another in PHP. Let’s have a brief description about these."  
author: "Anonymous User"  
published: 2011-10-17  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/255/post-get-and-request-function-in-php  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# Post, Get and Request Function in PHP

Post, Get and [Request](https://www.mindstick.com/forum/12799/handling-an-a-potentially-dangerous-request-form-value-was-detected-exception-without-deactivating-validation) [function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) plays an important role in passing [value from one](https://www.mindstick.com/forum/378/how-to-pass-value-from-one-controller-to-another-controller) form to another in PHP. Let’s have a brief description about these.\

##### $_Post Function:

The built-in $_POST function is used to [collect](https://www.mindstick.com/interview/34468/how-do-you-collect-and-clean-datasets) [values](https://www.mindstick.com/forum/327/sum-textbox-values) from a form sent with method="post". Information sent from a form with the [POST method](https://www.mindstick.com/forum/34628/server-get-post-method-in-php) is invisible to others and has [limits](https://answers.mindstick.com/qa/34268/what-are-the-gov-limits-in-the-salesforce-com) up to 8mb amount of information to send.

Syntax: $_Post[‘Variable_Name’]

##### $_Get Function:

The built-in $_GET function is used to collect values from a form sent with method="get". Information sent from a form with the GET method is visible to everyone (it will be displayed in URL) and has limits amount of information to send.

Syntax: $_Get[‘Variable_Name’]

##### $_Request Function:

In PHP, There is a built function ‘$_Request’, which is used for collect the information from form either it is used ‘GET’ method for submitting form or ‘POST’ method.

Syntax: $_Request[‘Variable_Name’]

---

Original Source: https://www.mindstick.com/blog/255/post-get-and-request-function-in-php

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
