I have a website with index.php (along with other pages) and an includes.php file. Can anyone help me figure out how I can add just the meta description and meta keywords tag in the includes file so I can add it on the individual pages how it's setup for the title tag. Any help would be great. Thanks:
includes.php :
<?
// ---- pageheader ----------------------------------------------------------------------------
function pageheader($title,$headbanner="body",$headerinsert="") {
global $activetab;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title><? echo "$title"; ?></title>
<link rel="stylesheet" type="text/css" href="/style.css">
<? echo "$headerinsert\n"; ?>
index.php
<?
require("global.php");
$activetab = 1;
pageheader("THIS IS THE LINE FOR THE TITLE TAG");
?>
//Body starts here:
<div class="package">
Question
Malik6
I have a website with index.php (along with other pages) and an includes.php file. Can anyone help me figure out how I can add just the meta description and meta keywords tag in the includes file so I can add it on the individual pages how it's setup for the title tag. Any help would be great. Thanks:
includes.php :
<? // ---- pageheader ---------------------------------------------------------------------------- function pageheader($title,$headbanner="body",$headerinsert="") { global $activetab; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title><? echo "$title"; ?></title> <link rel="stylesheet" type="text/css" href="/style.css"> <? echo "$headerinsert\n"; ?>index.php
<? require("global.php"); $activetab = 1; pageheader("THIS IS THE LINE FOR THE TITLE TAG"); ?> //Body starts here: <div class="package">Link to comment
Share on other sites
5 answers to this question
Recommended Posts