FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


how to divide php and html?





takashiro
is there only one way? use integratedTemplateExtension? Sad
imagefree
takashiro wrote:
is there only one way? use integratedTemplateExtension? Sad


what do you mean? can you please explain?
peaceninja
is that a firefox extension? I use notepad2 to distinguish visually between php and html.
nima3
<?php
if($id==1)
{
?>
<HTML> you can write html inhere</html>
<?php

}

?>
imagefree
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

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>";
?>
manav
i think u might wanna considr smarty...

its a cool php templating script....
Related topics
PHP or HTML
[PHP] HTML entities, inputs, quotes
php/HTML pages question
SSI within php coded files
php dil çevirmede yardým edin lütfen
How to upload a file via html-form and php?
How to change extension php to html but the php script still
php html tags
Make me a job application page in php and earn 110 FRIH$!
SOLVED::PHP upload_max_filesize
PHP...?!
javascript php html styling and good practice.
Here are some Great PHP Tutorial Sites !!!
Embed PHP+HTML
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.