$_POST | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

$_POST

why We used the $_POST array, pls repley

8th Jan 2017, 8:57 PM
Motiur Rahman
Motiur Rahman - avatar
3 Answers
+ 8
It holds the data of a "POST" request made by HTML <form method="post">
8th Jan 2017, 9:00 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
You can Receive the data from A Form in 2 ways By $_GET or By $_POST Variable , in $_GET method the values are obtained from the url , The url in case of $_GET is like www.example.com?name=xyz so from this url you can get value of name using $_GET[name], In case of $_POST url don't contain the data , url will be like www.example.com but the data will be stored in post form and can ve accessible using $_POST[name] , For forms mostly post method is recommended.
8th Jan 2017, 9:40 PM
Vivek Bora
Vivek Bora - avatar
+ 1
thanks
9th Jan 2017, 8:16 AM
Motiur Rahman
Motiur Rahman - avatar