0
$_POST
why We used the $_POST array, pls repley
4 Réponses
+ 8
It holds the data of a "POST" request made by HTML <form method="post">
+ 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.
+ 1
thanks