HTML Tip of the Day

gav on 2004-09-09T15:45:03

A submit button (or any image used instead) SHOULD NOT have a "name" attribute, unless the form contains multiple submit buttons.


I give...

phillup on 2004-09-09T16:54:53

Why?

What problem does this avoid/solve?

I ask because I've always provided a name attribute, and not had any problems... (but I'm blissfully able to avoid IE, so that may be the reason I have no problem... intranet development is much nicer than Internet development :-))

TIA

Re:I give...

gav on 2004-09-09T17:05:10

Why?

Firstly it's a extra thing you don't need, secondly it makes the resulting URL (if you use GET) much nicer (no image.x/image.y params).

Re:I give...

Purdy on 2004-09-09T20:37:07

You use GET? ;)

Re:I give...

vsergu on 2004-09-10T16:28:24

GET is pretty normal for many things, especially searches (see Google, for example).

Re:I give...

gav on 2004-09-10T16:37:15

Using GET also gives you bookmarkable URLs and cachability (if you send the right headers).

You're supposed to use GET for any request that doesn't change anything, eg. search results. See: