You are here: Re: Help me with a regular expression for PHP « PHP Programming Language « IT news, forums, messages
Re: Help me with a regular expression for PHP

Posted by Jerry Stuckle on 10/30/06 12:13

BKDotCom wrote:
> Pedro Graca wrote:
>
>>The following line is perfectly valid HTML (I think in any version)
>>
>> <input type="text" name="x><y" id="xy">
>
>
> I would have to disagree
> <input type="text" name="x> is invalid: no closing quote around
> name value
> <y" id="xy"> is invalid. y" isn't a valid cname (only
> alphanumeric?)
>
> if you want 'x><y' as a value you'd need to use name="x&gt;&lt;y"
>

Actually, it is legal. name="x><y" is a perfectly valid tag and value.
&lt; and &gt; aren't required here because they are within a quoted
string in a tag.

You do need &lt; and &gt; in plain text, however, when they may be
mistaken for the start/end of a tag.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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