Can U tell me what are the advantages and reasons of using GET method in php?
Why even use it if there is POST? Why do some websites use both GET and POST at the same time?
Can U name main reasons? cheers
Can U tell me what are the advantages and reasons of using GET method in php?
Why even use it if there is POST? Why do some websites use both GET and POST at the same time?
Can U name main reasons? cheers
One main advantage is, when you have parameters sent with GET, you URL contains all the information for the page to handle. So, you can Bookmark that link. You cannot do that if the data is sent with POST. More technical details here: What is the difference between POST and GET?
The GET method is useful in situations where the GET variable is used to display particular data from your website, such as maybe the results of a movie lookup or something, because the GET variable is part of the URL, thus it can be bookmarked. POST variables are passed invisibly to the user, so can't be used for this purpose. Typically, you would use GET variables to request data from a database, and POST variable to send data to your database.