Home>Article>Backend Development> How to get form submitted data in PHP

How to get form submitted data in PHP

(*-*)浩
(*-*)浩 Original
2019-09-20 11:37:10 4772browse

How PHP gets the data submitted by the form

How to get form submitted data in PHP

##1. Super global array variable: $_GET[]

Description: Get the data submitted by form method = “get”

Example: $username = $_GET[“username”];

2. Super global array variable: $_POST[](Recommended learning:PHP programming from entry to proficiency)

Description: Get form method = "post" Submit Data

Example: $username = $_POST[“username”];

    New Document        
   
用户名: 密码:

The above is the detailed content of How to get form submitted data in PHP. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn