sarahk,
Thank you for the information, and I would be most apprecitive if you could help me with a few concepts with PHPLIB.
As I understand a templating system it is so that one can seperate the HTML (formatting) and the PHP code. After developing many applications over the years, I see the advantages, in the area of maintainability and even portablity (between sites)
I only found one example in the PHPLIB documentation, and it acutally generated an error (which I was able to fix). If there are more, please let me know.
I have seen the debugged version of template.inc, but have not found any reason to use it yet. I am still experimenting with PHPLIB.
I guess what I am really looking to do is to display an error code. For instance lets just say I have a simple form with 1 field called name. If the person submits the form with "name" filled in, then ok.. but if they leave it blank then I need to display an error.
In the past I would have formatted the HTML and PHP something like
<?php
if (strcmp("",$_POST["name"]) == 0) {
echo "<font color='#FF0000'>Please enter a name</font>";
}
?>
Many times the form would be in a table for formatting, and I would not even want to include the extra row, or colum, if there is no error. This is more of what I am looking for with conditonal HTML. How using the templating system in PHPLIB can I exclude an entire row of an HTML table?
Are you saying that you would put HTML comments around it?
Thanks Again
PHPdev