You are here: Re: Tool to validate HTML code with PHP tags? « PHP Programming Language « IT news, forums, messages
Re: Tool to validate HTML code with PHP tags?

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация