Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am new to PHP i am actually learning it just to use it as a back-end server language
i just need to make sure if iam understanding well ,
there is no difference between both $_GET and $_POST except both have difference cases of usage ?

What I have tried:

i searched in tutorial point , w3school , stackoverflow
Posted
Updated 9-Apr-18 7:42am

 
Share this answer
 
Your Google-fu needs some work then: HTTP Methods GET vs POST[^]
 
Share this answer
 
Comments
Member 13768400 9-Apr-18 5:50am    
guys , i read it before i just want to make sure i understand rightly
Don't forget $_REQUEST[^], which works as both.

It does have some potential problems, such as $_GET['something'] and $_POST['something'] are both different - but $_REQUEST['something'] will have trouble with security in certain situations. Someone could, for example, put an new value in the URL and overwrite your original.

For simple page data transfer (no security risks) you make your life much easier.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900