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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.