Re: Help retrieving an HTML array
| From: | John Nichel | Date: | Wed, 01 Feb 2006 21:06:09 +0000 |
| Subject: | Re: Help retrieving an HTML array | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229687@lists.php.net to get a copy of this message | ||
David Dorward wrote:
Robert Cummings wrote:Yes, slop, ie sloppy.<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?
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).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@dotcomholdingsofbuffalo.com-- http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2