colossus25 Posted July 5, 2009 Share Posted July 5, 2009 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 More sharing options...
colossus25 Posted July 6, 2009 Author Share Posted July 6, 2009 please, anyone? Link to comment https://forums.phpfreaks.com/topic/164825-need-help-for-page-name-change/#findComment-869625 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.