A lack of character encoding shouldn't cause your alert not to display, but try using
[html]<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">[/html] on your html page instead.
Can you post some code for us to see?
sure here it is
[html]
<?php
$UA = $_SERVER['HTTP_USER_AGENT'];
if ((!preg_match('#(opera)#si', $UA)) && (!preg_match('#(firefox)#si', $UA)) && (!preg_match('#(safari)#si', $UA)))
{
# IE stuff
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!-- P: Annotated. Read. Learn. Never ever blight the world with tables and inline styles again. -->
<html>
<head>
<title>GET LOST IE!</title>
<meta name="description" content="Official Website of The Underground NJ Student Ministries" />
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle2.css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="chromejs/chrome.js" />
</head>
<body>
<p>Warning, warning your browser SUCKS! get Firefox, Opera or Safari if you want to see this page</p>
</body>
</html>
<?php
die();
}
# End of IE stuff
# Do not mess with this, for F and everything else good.
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
?>
[/html]
thats the section that caused my code to be tenatively valid but if you remove that and restore the php code the original my code is valid. also if you find anything that might be causing the page to not load in opera please let me know as i cant find where the problem is.