0

In PHP, what is used to recieve anything from the user?

16th Feb 2016, 7:14 PM
Hariom Chaturvedi
2 Respostas
+ 1
you should have a form and use $_POST, $_GET or $_SESSION
23rd Feb 2016, 1:54 PM
Joyce Lou Robedizo Lapido
Joyce Lou Robedizo Lapido - avatar
0
you have to use the super-globals depending on what do you need from the user.. for instance if the information you want isn't sensitive you can get it using $_GET so it appears on url or If you want a sensitive data for instance username and password you can get them using $_POST, If you want to create a cookie to prevent user for logging many times you will have to get his/her access and put in a cookie function
2nd Jul 2016, 1:37 PM
Mohammed Osama El-Morsy
Mohammed Osama El-Morsy - avatar