When you use the method "post" does it always overwrite $_POST? Is this one of the global variables, like $_SERVER? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When you use the method "post" does it always overwrite $_POST? Is this one of the global variables, like $_SERVER?

5th May 2016, 1:09 AM
Joseph Bonifacio
Joseph Bonifacio - avatar
4 Answers
+ 1
$_POST is a global variable. Each time you submit a form with method="POST", the form data is stored in thew $_POST variable.
26th May 2016, 1:09 PM
James Flanders
+ 1
post is a predefined global variable. It is used to send request to php script. While requesting it doesnt include the form field data in the url. Although post and get both do the same but ... post does it in more secure way but get method is rather faster than post.
10th Jul 2016, 8:18 AM
Shahid Muneer
Shahid Muneer - avatar
0
yes
12th Jun 2016, 5:25 PM
varun gupta
varun gupta - avatar
0
Yes. its global variable
11th Jul 2016, 2:55 PM
SOLEYMAN
SOLEYMAN - avatar