skip to content rich footer

stevenclark.com.au

subscibe to the StevenClark.com.au rss feed

Archive for the 'technical' Category

GET vs POST for the Beginner

Saturday, January 12th, 2008

If you hunt around for explanations about GET vs POST (used as the method for sending your form data to the server) you get a whole lot of technical overkill because its not a simple discussion. Many people just want a simple answer. Its probably better to say its not an easily explainable discussion when technical experts jump in with quotes from protocol specifications. But what’s the difference between GET and POST to the beginner? How is GET treated differently from POST and why would you use one over the other?

Let’s backtrack a little and look at the form element’s method attribute…

form method="get" action=""

There are other methods but for the most part GET and POST are your two basic alternatives. This is the method that the form will use to send the information to the server. Note the form data will be sent in plain text regardless of whether GET or POST is used.

First let’s look at GET. The simple thing to note about GET is that when you use GET the content of your form will become url encoded into a query string. That means in the address bar of your browser where you type in URLs the content of your form will become a query string appended after a ? as name=value pairs. For example if your form took your name and your age the corresponding query string attached to the URL would be…

?name=steven&age=43

As you can imagine this can be read by anyone looking over your shoulder. In a generalised sense, GET is meant for when you get from the server rather than POST being meant to post to the server.

Read the rest of this entry »

Stand Up Guy

Steven Clark Steven Clark - the stand up guy on this site

An icon for overweight middle aged bogun-geek web designers. A lego block in a Meccano world. A synergy of tattoos, memories of bare knuckle fist fights, and old episodes of Star Trek. My name is Steven Clark and I'm a highly opinionated web designer with a few good ideas. I'm too old for fist fights.

My Photography Blog

My photography blog Walk a Mile in my Shoes is back up and running. Due to bandwidth issues it's only one image at a time and not full text in the RSS feed. It's licensed under creative commons , meaning not for commercial use and you need to attribute, otherwise drop me a line via the contact form on this site.

My Links Blog

You might also like to check out my links blog over at Nortypig.com to learn more about everything worth mentioning.

My Illustrations

Currently I only have a static page for illustrations but if time allows I'd like to start another illustration blog.

Declaration of Independence

Site Content

Developed and published by Steven Clark

Site Supporters

Hosted by Brett at Tashosting

skip to top of page

Currently Reading

Here Comes Everybody by Clay Shirky (cover)

Clay Shirky's Here Comes Everybody: The Power of Organizing without Organizations has been on my bookshelf for the last few months literally screaming to be read. In fact, I'm wondering how I got so sidetracked to have reached the end of the year without having consumed it. The message of the book is an area of my own fascination, the effects that our new technologies have on the way we relate to each other, and how we're now empowered in ways that were historically unheard of (or not even conceived of) not too long ago.

I'm a small town boy who grew up in the seventies, graduating high school in 1979. The world was slower - how did we survive without Wikipedia? Without MSN or Facebook? Nowdays we have flashmobbing and blogging and constant connection.