actually.... i would do it like this (use straight html when you can... its quicker):
<? // does anything really need to be here? ?>
<script language="javascript">
function ViewPage(url)
{ OpenWin = this.open(url, 'CtrlWindow', 'toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes');
}
</script>
<tr><td><a href="javascript:ViewPage('article_1.html');">Article1</a></td><tr>
otherwise.... echo 'a bunch of '.$stuff.' here';
or... echo "whatever you $want";
escaping works, but makes it a pain to move chunks of html out of <?php?> sections
good luck mediaphyte.com
If a person is just getting started, I would point them in this direction. As their scripts/programs require more modularity and more code in general, it's always better to point them in the class/function direction. It's not too difficult to learn and it will provide better coding standards all around for the developer.
PHP4 OO:
http://us2.php.net/oop/
PHP5 OO:
http://us3.php.net/zend-engine-2.php
Reputation Points: 41
Solved Threads: 2
Junior Poster in Training
Offline 93 posts
since Jan 2004