You are here: Re: post to self? « All PHP « IT news, forums, messages
Re: post to self?

Posted by Johnny on 09/03/06 23:31

"Andy Hassall" <andy@andyh.co.uk> wrote in message
news:gfmlf2df1rm8aqrpbkjrc4nq9hj6f2f9bu@4ax.com...
> On Sun, 03 Sep 2006 05:51:11 +0200, "J.O. Aho" <user@example.net> wrote:
>
> >Andy Hassall wrote:
> >> On Sat, 02 Sep 2006 23:07:05 +0200, "J.O. Aho" <user@example.net>
wrote:
> >>
> >>> Jon Pike 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?
> >>> For the form isn't valid html?
> >>
> >> Other than the missing document around it (<html>,<head> etc.), what's
invalid
> >> about it?
> >
> >The w3 validator would spit out quite many errors, there should be a
quotation
> >around all values given to type, src, value, action and method.
>
> No, it doesn't; none of those are violations of the standard given the
current
> values, it is perfectly acceptable to have them unquoted. It's just a bad
idea.
>
> "In certain cases, authors may specify the value of an attribute without
any
> quotation marks. The attribute value may only contain letters (a-z and
A-Z),
> digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46),
> underscores (ASCII decimal 95), and colons (ASCII decimal 58). We
recommend
> using quotation marks even when it is possible to eliminate them."
>
> --
> Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
> http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

but when using images is not the alt attribute required?

 

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

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