You are here: Re: IE form image type - not playing nice « HTML « IT news, forums, messages
Re: IE form image type - not playing nice

Posted by Marnok.com on 07/04/07 08:58

"Bergamot" <bergamot@visi.com> wrote in message
news:5evhkaF3a7pa4U1@mid.individual.net...
> Marnok.com wrote:
>>
>> http://www.marnok.com/test/test.php
>>
>> What I see in Firefox, I click an image, and a "1" is displayed in the
>> echo
>> related to that image.
>> When I try the same in Internet Explorer, I get nothing.
>
> This looks like one of those rare cases where IE isn't doing anything
> wrong.
>
>> I'd appreciate any advice on what I am doing wrong here.
>
> You are using <input type="image"> inappropriately. Read the specs at
> http://www.w3.org/TR/html401/interact/forms.html#h-17.4 to learn why.
>
> You probably want a button element instead, but ISTM that IE has other
> problems with that.
>
> --
> Berg

Hi,

Slow Kid here again...
Thanks Bergamot and Neredbojias for you help on this.

I tried buttons as you suggest,

http://www.marnok.com/test/test2.php

now this also works as expected in Firefox, sending a value of "1" for the
button which was pressed.
In IE, it seems to send a messed-up version of the path to the image instead
(putting quotes around the actual file path/name specified in the html), and
sends it for BOTH buttons regardless of which is pressed.

I think I may have to change direction, maybe dump the form and go with
image links with "?button=n" for each. Probably simpler anyway.

But I would be interested to know if anyone can tell me, is there anything
else I could have done to make this work as a form in IE?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация