View Single Post

  #5 (permalink)  
Old 10-30-2006
BKDotCom
 
Posts: n/a
Default Re: Help me with a regular expression for PHP


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"

Reply With Quote