Can an input field have a blank name?

Giganews Newsgroups
Subject: Can an input field have a blank name?
Posted by:  Clive Backham (cli…@delback.co.uk)
Date: Mon, 05 Sep 2005

I'm having trouble with Instant Payment Notification on PayPal. One of
the forms that they generate, which invokes one of my scripts, has a
submit button with a blank name. The HTML fragment  is this:

<input type="submit" name="" value="Continue">

This causes the FORMDATA that is sent to my script to start like this:

=Continue&nextparam=value&....

My initial reaction was that this can't possibly be valid HTML, but I
put together a brief page including such a field and submitted it to
W3.ORG's validator, and it was reported as "tentatively valid". So now
I'm led to believe that having a blank name on an input field is
valid.

But how is the received script supposed to parse it? What is the name
of the field? Is the receiving script expected to just invent some
random name?

Thanks for any light anyone can shed on this.

Replies