28 Aug 2002 jacobo   » (Journeyer)

I finally found the cause of a bug that made IE users unable to post comments in my weblog.

Question: if there's HTML markup like this inside a form, and the user presses the button, what will be sent to the server?

<button type="submit" name="iamabutton" value="iamcool">This is the caption</button>

Your options are:

  1. iamabutton=iamcool
  2. iamabutton=This%20is%20the%20caption
  3. iamcool=This%20is%20the%20caption

Mozilla and Opera 6 say that (1) is the right answer. IE, though, says that the right one is (2).

If I found the one responsible for this... Ooooh, if I found him (or her).

(This has been edited; I had swapped the name and the value in the answers)

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!