Click here to get back home

Persuading IE to do the right think with

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Persuading IE to do the right think with Steve Swift 12-09-2007
Posted by Steve Swift on December 9, 2007, 1:30 am
Please log in for more thread options
Faced with:
<BUTTON NAME=ORDER VALUE=1 TYPE=SUBMIT>Order</BUTTON>
Internet explorer sends "ORDER=Order" rather than "ORDER=1".

Is there any way to persuade it to do what was intended, to submit the
actual VALUE of the button rather than its caption?

Is there any HTML proposal to add add an extra parameter to the <SUBMIT>
control (something like USEVALUE) so that IE would have to implement it
properly, and we could write sensible CGI scripts?

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Posted by Adrienne Boswell on December 9, 2007, 4:48 am
Please log in for more thread options
Gazing into my crystal ball I observed Steve Swift

> Faced with:
><BUTTON NAME=ORDER VALUE=1 TYPE=SUBMIT>Order</BUTTON>
> Internet explorer sends "ORDER=Order" rather than "ORDER=1".
>
> Is there any way to persuade it to do what was intended, to submit the
> actual VALUE of the button rather than its caption?
>
> Is there any HTML proposal to add add an extra parameter to the
<SUBMIT>
> control (something like USEVALUE) so that IE would have to implement
it
> properly, and we could write sensible CGI scripts?
>

It's a known bug in IE. The only thing you could do is use javascript,
but then you could still have a user with js turned off submit an
incorrect value.

You could assign a name attribute to input type="submit", eg: <input
type="submit" name="1" value="Submit"> or you could put the value in a
type="hidden" input element.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


Posted by Adrienne Boswell on December 9, 2007, 4:59 am
Please log in for more thread options
Gazing into my crystal ball I observed Adrienne Boswell
69.28.186.121:

> Gazing into my crystal ball I observed Steve Swift
>
>> Faced with:
>><BUTTON NAME=ORDER VALUE=1 TYPE=SUBMIT>Order</BUTTON>
>> Internet explorer sends "ORDER=Order" rather than "ORDER=1".
>>
>> Is there any way to persuade it to do what was intended, to submit
the
>> actual VALUE of the button rather than its caption?
>>
>> Is there any HTML proposal to add add an extra parameter to the
><SUBMIT>
>> control (something like USEVALUE) so that IE would have to implement
> it
>> properly, and we could write sensible CGI scripts?
>>
>
> It's a known bug in IE. The only thing you could do is use
javascript,
> but then you could still have a user with js turned off submit an
> incorrect value.
>
> You could assign a name attribute to input type="submit", eg: <input
> type="submit" name="1" value="Submit"> or you could put the value in a
> type="hidden" input element.
>

In addition:
http://msdn2.microsoft.com/en-us/library/ms535211.aspx and


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


Posted by Steve Swift on December 9, 2007, 2:10 pm
Please log in for more thread options
Adrienne Boswell wrote:

Wow! They even have the gall to document that it works incorrectly.

My form has a couple of INPUT TYPE=TEXT fields and several INPUT
TYPE=SUBMIT buttons, so I need both the name and the value to make sense
of which button the user pressed. In most cases I can encode both the
name and the value in just the name, as in NAME="DELETE.document_1.txt"
and that gives me a consistent interface for my CGI scripts across
browsers. It's a little cumbersome though.

Thanks for the information.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Posted by Steve Swift on December 10, 2007, 1:44 am
Please log in for more thread options
> In addition:

Several hours later I got to pondering: I wonder if any one at all finds
the inner html useful when returned where the VALUE= should be expected?

Even amongst web developers at Microsoft.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap