is there only one way? use integratedTemplateExtension? 
how to divide php and html?
| takashiro wrote: |
| is there only one way? use integratedTemplateExtension? |
what do you mean? can you please explain?
is that a firefox extension? I use notepad2 to distinguish visually between php and html.
<?php
if($id==1)
{
?>
<HTML> you can write html inhere</html>
<?php
}
?>
if($id==1)
{
?>
<HTML> you can write html inhere</html>
<?php
}
?>
I think your questiion is about using html with php.
You can do this in 3 different ways
1) by including html files (just like you said, make template)
2) use inline php to bring dynamic effect, just like
3) or you can use PHP to display html
You can do this in 3 different ways
1) by including html files (just like you said, make template)
2) use inline php to bring dynamic effect, just like
| Code: |
| <html>
<title>site title</title> <body> <?php for($count=1, $count<5;$count++) echo "My name is ______."; ?> </body> </html> |
3) or you can use PHP to display html
| Code: |
| <?php
echo "<html><title>no title</title><body>Here goes the body of the html page</body></html>"; ?> |
i think u might wanna considr smarty...
its a cool php templating script....
its a cool php templating script....
