You are here: Re: Post to self? « PHP Programming Language « IT news, forums, messages
Re: Post to self?

Posted by Jon Pike on 09/03/06 09:36

Andy Hassall <andy@andyh.co.uk> wrote in
news:m5vjf2pdso3jflg4sefea1cm0nsm7f8j7b@4ax.com:

> On Sat, 02 Sep 2006 20:07:21 GMT, Jon Pike <anonomoose@spamless.com>
> wrote:
>
>>if test.php is this file:
>>
>><?php
>> $lang = $_POST["lang"];
>> print $lang;
>>?>
>><form method=post action=test.php>
>><input type=image src=engFlag.jpg name="lang" value=en>
>><input type=image src=fraFlag.jpg name="lang" value=fr>
>></form>
>>
>>Why won't it print $lang; after having one of the images clicked?
>
> Does here on Firefox.
>
> But on Internet Explorer it only posts "lang_x" and "lang_y" for the
> coordinates of the click.
>
> http://www.w3.org/TR/html4/interact/forms.html#h-17.4.1
>
> The "." from the standard is transformed by PHP into "_".
>
> IE's behaviour here is very unhelpful, and probably a violation of
> the
> standard; it says the x and y are included in the submitted data, but
> doesn't say to eliminate the original name/value pair.
>

Ah, very clear, thank you!

 

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

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