Re: dynamic boxes problem... JS and PHP
| From: | Jim Lucas | Date: | Wed, 09 Apr 2008 15:46:24 +0000 |
| Subject: | Re: dynamic boxes problem... JS and PHP | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272795@lists.php.net to get a copy of this message | ||
Daniel Brown wrote:
On Wed, Apr 9, 2008 at 11:18 AM, Jason Pruim <japruim@raoset.com> wrote: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 ShakespeareOn Apr 9, 2008, at 11:09 AM, Jim Lucas wrote:While we are on the topic of the <form...>...</form> tags, just a sidenote. 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 forgetand then re-learn English and HTML simultaneously? ;-PJim 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 JustWork[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>