Forum Moderators: coopster
I have a php script to handle a form, if validation is ok, I send a mail and show the resulting information on the page.
I want the page to be formated with my css file. So my php script look like this:
<php script code>
<html code with css linking in header>
Everything is showed, but not formated. And I cannnot put the Header on top cause parts of the script requires that header must not been sent.
Any clue? Thanks
<link rel="stylesheet" type="text/css" href="<?php echo(SITE_ROOT)?>styles/800.css">
wherein I defined a settings.php containing something like:
<?php
ini_set(max_execution_time,"15");
define ("SITE_ROOT", "http://localhost/");
more php settings....
and still more of them here....
?>
Then I include the settings.php via
<?php
session_start();
require_once($_SERVER['DOCUMENT_ROOT'].'/settings.php');
--- or ---
require_once("settings.php");
.
.
.
more php codes...
?>
at the beginning of the php file.
Hope this helps.