Jump to content

required logic while page design


Recommended Posts

Hi All,

 

I knw how to code basic php page, bt i need logical help...

Lets c I have 3 pages n all has "Banner" as command part, So one option is to repeat 'banner' code on every page... but i wanted to avoid repeating code.

I thought to write another PHP file  only with banner code in it and 'include' that on every page.

 

My que is,  should that banner.php has whole html tags like 'html', 'head', 'title', n 'body'.  or simply echo all html tags or just add the code.

 

should banner. php file like


<html>

<head> <title></title></head>

<body>

<?

echo "This is banner Info"; ?>

</body></html>


or

<?

echo "<html>

<head> <title></title></head>

<body>

This is banner Info

</body></html>"; ?>


or simply

<?

echo "This is banner Info";

?>

 


or whats if php file has some php n some html code in it

 

Thanks all

 

Link to comment
https://forums.phpfreaks.com/topic/264969-required-logic-while-page-design/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.