Daniel Brown wrote:
On Wed, Apr 9, 2008 at 11:18 AM, Jason Pruim <japruim@xxxxxxxxxx> wrote:
On Apr 9, 2008, at 11:09 AM, Jim Lucas wrote:
While we are on the topic of the <form...>...</form> tags, just a side
note. It is invalid HTML syntax to have any tag between your
<table><ILLEGAL><tr><ILLEGAL><td> ok here
</td><ILLEGAL></tr><ILLEGAL></table>
But something like:
<table><TR><TD>stuff here</TD></TR></table> is okay right? Just wanted to
double check since that's how all my stuff is and it works... but just
because it works doesn't mean it's right :)
First day with the new eyes, Pruim, or decided to try to forget
and then re-learn English and HTML simultaneously? ;-P
Jim points out the correct XHTML layout, which shows "ok here"
(or, as you have it, "stuff here") between the td/TD tags. Case
doesn't matter, but does make it look sloppy. In addition, case
/should/ matter when matching closing to opening tags. For example,
try to avoid <td></TD> and mix-and-match versions thereof.
Keep in mind, no matter what, even the following will still Just
Work[tm]. It just won't validate when run through a nose-in-the-air
checker. Note the obvious messes, as well as some other issues. It's
ugly, but it works.
<Table>
<FORM method="post">
<!-- An example of an UGLY form! -->
<TR>
<input type="Hidden" name="field1" value="value1">
<td />
<textarea NAME="userfield1"><?=print_r($_SERVER);?></TextArea>
</tD>
</tr>
</table>
<input type="SUBMIT" value="GO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" />
</form>
Yeah, if you used code like that IRL I would slap your hand!
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php