what is the difference between GET and POST?
Answer Posted / yugandhar
GET:
-----
1. URL Changes to the submitted script name, appended with
a list
of each variable with the value.
2. Use only if the number of variable to be used in a form
ar very less.
3. Never use GET forms when asking for login ID and
passwords.
4. Even hidden variables are shown as a part of the URL.
5. A lot of webservers might complain about long URLs being
submitted.
A lot of times a URL 255 char or more is a problem.
POST:
-----
1. This is the best way of submitting forms to the web
server.
2. There is no limitation on the number of Variables passed
from the form.
3. This is a transparent way of transmitting variables to
the webserver
where hidden variable are always hidden!
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What PHP stands for?
What is a session in php?
What is difference between readonly and constant?
How to reset/destroy a cookie in php?
What websites use php?
How does session work in php?
Is strcmp case sensitive?
Which variable declarations within a class is invalid in php?
Does cors prevent csrf?
Explain Constant in Class?
How do you define a constant?
Tell us how can we access the data sent through the url with the post method?
Can a trait extend a class php?
What are getters and setters and why are they important?
What is lamp in php?