Posted by Geoff Berrow on 04/30/07 12:49
Message-ID: <1177934943.384334.127560@n76g2000hsh.googlegroups.com> from
webrod contained the following:
>> Unfortunately an automated tool has to work in all situations.
>
>OK, so do you see other situations which could be a problem?
>Give examples.
<?php if($something_is_true){ ?>
<span style='border:1px solid
red;padding:20px;margin:20px;text-align:center'>
<?php } ?>
<?php if(!$something_is_true){ ?>
<div style='border:1px solid
blue;padding:20px;margin:20px;text-align:center'>
some content
</div>
<?php } ?>
<?php if(!$something_is_true){ ?>
some more content
</div>
<?php } ?>
<?php if($something_is_true){ ?>
</span>
<?php } ?>
Removing all the PHP you have a div inside a span though that could
never happen.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
[Back to original message]
|