+ 4

what is the different between $_GET and $_POST???

i cant trouly understand the concept of it.

14th Oct 2016, 3:56 PM
Cliff James
Cliff James - avatar
13 ответов
+ 5
Different methods to transfer data With get you put values in url, example index.php?id=1&value=2&name=my with post you hide data from url
15th Oct 2016, 7:54 PM
Александр Чернуха
Александр Чернуха - avatar
+ 3
$_GET contains vars passed on query stringe es www.PHP.com?key=value is accessibile with $_GET[key] ... $_POST store value passed at the script in POST method from HTML form accesible with $_POST[tagName]
14th Oct 2016, 7:00 PM
Simone Marchiori
Simone Marchiori - avatar
+ 3
It's all about the security concerned with the way they send data to server.. Using GET method your data will be send along with the URL ,& you can see that data while with POST method your data will be sent hidden i.e you can't see it & you can only access it with the tag name ex. $_POST[tag].. Thank You
12th Nov 2016, 12:44 AM
Pranav Giri
Pranav Giri - avatar
+ 1
these are the types of form method . from post your data will be hide from URL but with get your data is visible in url
6th Nov 2016, 2:57 AM
Younus Ghazni
Younus Ghazni - avatar
0
thank you. I had same problem!
13th Nov 2016, 7:21 AM
Arcel Donas ACHENGUI KEMO
Arcel Donas ACHENGUI KEMO - avatar
0
as it is said above ... the way get and post transfer data between php files or screens is different. So if your page is carrying any secure data like passwords or pin then use post in other scenarios you can use GET OR POST to carry your form data ..
17th Nov 2016, 12:26 PM
Surya Konduru
Surya Konduru - avatar
0
the difference is, they are used with corresponding form methods, post or get.
26th Nov 2016, 7:54 AM
iJean
iJean - avatar
0
post is secured compare 2 get
8th Dec 2016, 7:33 AM
Vidadala Deepu
Vidadala Deepu - avatar
0
get is unsecured for passwords n pin wheere as post method is secured
16th Dec 2016, 2:54 AM
yanish
yanish - avatar
0
$_GET (search) & $_POST (posting)
18th Jan 2017, 10:36 PM
Ahmad Isah Adam
Ahmad Isah Adam - avatar
0
as said above all are correct but there is much more. in post when you refresh the page you all current content disappear due to security thats why u cannot bookmark the page and when transferring the link current content will not transfer like a login with fb and send the link , it will tells u to login but in Get all this are not problems are not there. ☻
25th Jul 2017, 3:55 AM
Piyush Chandwani
Piyush Chandwani - avatar
0
$_GET : 1) $_GET is super global variable. 2) Data send in GET is visible in URL. 3) Not preferable for send sensitive data. 4)Limitation of send data.(About 2000 character) 5)In GET you send information to server in two way : a) Through URL b) Through from $_POST: 1) $_GET is super global variable. 2) Data send in POST is not visible in URL. 3) Preferable for send sensitive data. 4) No limitation for send data. 5) In POST you send information to server in one way that is form.
16th Jul 2020, 7:13 AM
Code_Hunger
Code_Hunger - avatar
0
thank you.
22nd Nov 2020, 9:14 PM
Bram van Gool
Bram van Gool - avatar