I created a dynamic body ID. and this is my script
Code: Select all
if($page == "index.php") { echo '<body id="page1">'; }
else if($page == "om.php") { echo '<body id="page2">'; }When i view the sourcecode on index.php, i saw two body tags:
<body id="page1">
<body id="page1">
When I view the sourcode on om.php. i saw this:
<body id="page2">
<body id="page1">
I dont understand why is this happening. it should only display one body tag. And each page, i declared the pages as:
For index.php , its $page = "index.php";
For om.php, its $page = "om.php";
Hope to hear from you soon.
Thanks and have a great day!
Regards,
Ed