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

$_REQUEST

I dont understand on what is using. Can me somebody explain it please?On example ...

27th Nov 2016, 10:06 AM
Roman
1 Answer
+ 5
Sometimes you might want the same script to be called with several different ways. A form submit and an AJAX call comes to mind. In most cases, however, its better to be explicit. But I like to use $_post when I want to hide data, such as password. And use $_get when you can show your data. Rarely use $_cookie because $_session is better option. There are many function in PHP which were better for older days. But rarely use now
27th Nov 2016, 11:06 AM
Aditya kumar pandey
Aditya kumar pandey - avatar