note 16865 modified in language.basic-syntax by torben

From: Date: Mon, 26 Nov 2001 22:31:57 +0000
Subject: note 16865 modified in language.basic-syntax by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21297@lists.php.net to get a copy of this message
Beware of ASP style tags as they are immune to comment. So if you have something like: // $t = '<TABLE WIDTH=100%>'; the final part of the 100% is interpreted as the PHP closing tag even if it's commented out. [Ed. note - The correct way to deal with this is to quote your attributes. To wit: <TABLE WIDTH=100%> is incorrect; <TABLE WIDTH="100%"> is correct. For a full explanation, see http://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.2; suffice it to say here that if your attribute value contains anything besides [-_.:0-9A-Za-z], you must quote it.] --was-- Beware of ASP style tags as they are immune to comment. So if you have something like: // $t = '<TABLE WIDTH=100%>'; the final part of the 100% is interpreted as the PHP closing tag even if it's commented out. http://www.php.net/manual/en/language.basic-syntax.php

« previous php.notes (#21297) next »