Re: dynamic boxes problem... JS and PHP
| From: | Daniel Brown | Date: | Wed, 09 Apr 2008 15:29:56 +0000 |
| Subject: | Re: dynamic boxes problem... JS and PHP | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272792@lists.php.net to get a copy of this message | ||
On Wed, Apr 9, 2008 at 11:18 AM, Jason Pruim <japruim@raoset.com> 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>
--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!