GET and POST methods

Discuss PHP as it applies to web design, custom web apps, databases, search engine optimization or Mod Rewrite to make search engine friendly pages or anything else PHP you desire to know.

Moderator: John55

GET and POST methods

Postby niky » Thu Jul 24, 2008 12:35 pm

GET and POST methods
Does anyone know exactly when to use the GET and when to use the POST methods, why and why not?


Thanks in advance.
___________________
Hotels in Edinburgh ltd Pyramid Belt
niky
 
Posts: 2
Joined: Thu Jul 24, 2008 11:00 am

hai

Postby kitty_petiya » Wed Jan 28, 2009 11:30 am

Well GET shows the variables in the web address of the php page that you send it to.

I would say the strongest argument for GET is that it's great for web services. Where another coder can feed variables and pull content from your php page.

POST is better for SEO because Google gets grumpy if there is more than 2 variables in the http address.
_________________________
petsafe dog collar
kitty_petiya
 
Posts: 3
Joined: Wed Jan 28, 2009 11:25 am

Re: GET and POST methods

Postby billy666 » Tue Aug 11, 2009 7:20 am

The phrase "no lasting observable effect on the state of the world" isn't of course very exact either, and isn't really the same thing. Idempotent processing, as defined above, does not exclude fundamental changes, only that processing the same data twice has the same effect as processing it once. But here, in fact, idempotent processing means that a form submission causes no changes anywhere except on the user's screen (or, more generally speaking, in the user agent's state). gelato National Lotto Thus, it is basically for retrieving data. If such a form is resubmitted, it might get different data (if the data had been changed meanwhile), but the submission would not cause any update of data or other events. The concept of changes should not be taken too pedantically; for instance, it can hardly be regarded as a change that a form submission is logged into the server's log file. On the other hand, sending E-mail should normally be regarded as "an effect on the state of the world".
billy666
 
Posts: 3
Joined: Tue Aug 11, 2009 7:15 am

Re: GET and POST methods

Postby jacksonp » Wed Feb 10, 2010 10:13 am

When you use GET method, data will be visible on the URL, while POST method doesn't. Also, GET is less secure and has a limit of 256 chars, while PoST is secure and transfers unlimited data.
User avatar
jacksonp
 
Posts: 8
Joined: Wed Feb 10, 2010 7:10 am


Return to PHP Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron