Question:

Php/html/css need help with an inline html files style

by  |  earlier

0 LIKES UnLike

ok, so i have this snipet of php that displays an html document in my main page.

<?php

$page = isset($_GET['page']) ? $_GET['page'] : 'home';

//$main = isset($_GET['main']) ? $_GET['main'] : 'home';

//added by josh lange

if (strpos($page, "http") != FALSE || strpos($page, "ftp") != FALSE) {

$page = "home";

}

//if (strpos($main, "http") != FALSE || strpos($main, "ftp") != FALSE) {

//$page = "home";

//}

include ("$page.html");

//include ("$main.php");

?>

the problem is that the internal html seems to be using the css fill of the main page. It should be using its own. any help will be great, thanks.

 Tags:

   Report

1 ANSWERS


  1. A CSS stylesheet can only be included in the head of the HTML document. An HTML document can only have one head. If $page.html is a full HTML document, including it into another page is not going to work well, and is very unwise. You&#039;ll need to figure out another way to do this.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions