php header/html DTD issues?
Posted: Tue Apr 07, 2009 2:43 pm
whenever i try to include this small php script before my html DTD, it breaks some of the javascript functionality on my page.
the php script is:
my guess is that including this doesnt work due to conflict with my html DTD definition as follows:
anyone know why?
the php script is:
Code: Select all
<?php
require_once('d:\pieces\wnusers\wnuser.class.php');
$user = new wnuser();
if (!$user->valid) { // check whether user/pass combo worked
header('Location: index.php?err=bad_login');
exit();
}
?>
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">