How to get form submitted data in PHP

(*-*)浩
Release: 2023-02-24 14:04:01
Original
4786 people have browsed it

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        
   
用户名: 密码:
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!