David Dorward wrote:
Robert Cummings wrote:
<input type="text" name="xname[]" value="n..."
I also took the liberty of adding double quotes to your attributes.
There's no excuse for writing slop.
Slop?
Yes, slop, ie sloppy.
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).
-- http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
I also don't _have_ to declare variables, don't _have_ to call
mysql_close, etc, but that doesn't make it a good practice. The above
'standard' is pretty and all, but how many browsers out there are 100%
standards compliant? Quoting will make sure you get the results you're
expecting.
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php