You are here: Re: input type="image" $_POST queries « PHP Programming Language « IT news, forums, messages
Re: input type="image" $_POST queries

Posted by Mark Woodward on 07/11/06 12:37

Thanks guys,

On Tue, 11 Jul 2006 12:59:10 +0300, Kimmo Laine wrote:

> "Creates a graphical submit button. The value of the src attribute specifies
> the URI of the image that will decorate the button. For accessibility
> reasons, authors should provide alternate text for the image via the alt
> attribute.
>
> When a pointing device is used to click on the image, the form is submitted
> and the click coordinates passed to the server. The x value is measured in
> pixels from the left of the image, and the y value in pixels from the top of
> the image. The submitted data includes name.x=x-value and name.y=y-value
> where "name" is the value of the name attribute, and x-value and y-value are
> the x and y coordinate values, respectively." From:
> http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.4.1
>
> Note that php will convert name.x to name_x and name_y since period is
> invalid in variable name.
>
> What I'd like to know is what happens in IE if images are disabled or
> non-existing image uri is given, and form is submitted by clicking the image
> input which is converted to normal submit button, is the actual name then
> provided? Are the coordinates (0,0) provided?

Kimmo, I just disabled images in ie6 so I'm only see the placeholders. It
still works as though the image was there (ie getting the x and y coords).


--
Mark

 

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

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