Re: IE Problem Detecting Post Variables
| From: | Ashley Sheridan | Date: | Sat, 03 Jan 2009 02:45:12 +0000 |
| Subject: | Re: IE Problem Detecting Post Variables | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285384@lists.php.net to get a copy of this message | ||
On Fri, 2009-01-02 at 18:06 -0500, Andrew Ballard wrote:
> On Fri, Jan 2, 2009 at 1:15 PM, Micah Gersten <micah@onshore.com> wrote:
> > You might want to consider the button element which allows you to
> > display images, but doesn't send back coordinates. Instead it sends a
> > preset value.
> > http://www.w3.org/TR/html401/interact/forms.html#h-17.5
> >
> > Thank you,
> > Micah Gersten
> > onShore Networks
> > Internal Developer
> > http://www.onshore.com
>
> If you mean an INPUT element with the type="button", then yes.
> (Although it will no longer be a submit button, so you'll have to
> capture the click and perform the submit using Javascript which leads
> back to accessibility issues, etc.)
>
> If you mean a BUTTON element of the type="submit", then not exactly.
> It *will* send a preset value for sure, but that preset value will
> differ depending on the browser. I've found that while FF will send
> the value you set in the value="..." attribute, IE will send the
> actual text of the button. Thus,
>
> <button name="test" value="blue">My Button Text</button>
>
> will send 'test=blue' in FF, but 'test=My+Button+Text' in IE. I'm
> assuming this is because for <INPUT type="submit"> buttons, the text
> content of the button IS the value in the value="..." attribute.
>
> Whatever the reason, that was a fun lesson to track down the first
> time I had people tell me a page I wrote didn't work in IE.
>
> Andrew
>
Lets all march forward and renounce IE as a useful piece of software!
Ash
www.ashleysheridan.co.uk