Jump to content

need help for page name change


colossus25

Recommended Posts

hi!

 

i have made pages with php and i have table were is place for header of the current page (home, gallery etc.) i have template where is that table and in other pages i call the tamplate with include.  how to get page name to that table.

 

like this:

 

template.php:

 

<?

function htmltop($title) {

 

?>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>mypage.com - <?echo $title?></title>

<?

}

 

function script() {

?>

<style type="text/css">

<!--

body {

 

 

}

-->

</style>

<link href="cssstyle.css" rel="stylesheet" type="text/css" />

 

</head>

 

<body>

<table width="800" height="1000px" border="0" align="center" cellpadding="0" cellspacing="0">

          <td width="700px" height="33" align="left" valign="middle" bgcolor="#232323" class="style2"><?echo $page?></td>

 

in gallery.php:

 

<?

header("Content-Type: text/html; charset=iso-8859-1");

 

include "template.php";

 

 

htmltop("Gallery");

 

 

 

?>

<script></script>

<?

script()

?>

 

----------           

Link to comment
https://forums.phpfreaks.com/topic/164825-need-help-for-page-name-change/
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.