Forum Moderators: open
For some reason, the javascript line in the php is causing the validator to miss the doctype.
Would appreciate help solving this problem. Thanks.
<?php
if (!isset($_COOKIE['widgetcookie'])) {
// if a cookie does not exist
// set it
setcookie("widgetcookie", "1", mktime()+86400, "/") or die("Could not set cookie");
{
// pops access confirmation box
function confirm($msg)
{
echo "<script language=\"javascript\">alert(\"".$msg."\");<\/script>";
}//end function
}
$msg = "lorem ipsum delor.";
confirm($msg);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">