This snippet of code has a few good points:
- You can use the GET method to send the data.
- It’s simple, short and cross-browser compatible.
And some bad..
- You can’t handle submitted files (not really tested it though)
- You can’t do things with POST’ed forms.
- You really shouldn’t be processing anything important on the client-side, as it’s open to a multitude of attacks.
But anyway, I shall walk you through my thinking…