Can I use php to see if cookies are enabled? and also use it with this code:
<?PHP
$js = $_GET[“js”];
if($js==0){
setcookie(“js”, 0, time()+60*60*30, ‘/’, ‘.foxvalleynews.com’);
echo (‘<html>
<title>Fox Valley Newspapers</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<frameset cols=”134,*“>
<frame name=”leftFrame” scrolling=”NO” noresize src=”index-2.html”>
<frame name=”mainFrame” src=”index-1.html”>
</frameset>
<noframes>
<body bgcolor=”#FFFFFF” text=”#000000″>
</body>
</noframes>
</html>’);
} else if($js==1) {
setcookie(“js”, 1, time()+60*24
echo (‘<html>
<title>Fox Valley Newspapers</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<frameset cols=”134,*” frameborder=”NO” border=”0″ framespacing=”0″ rows=”
<frame name=”leftFrame” scrolling=”NO” noresize src=”index-2.html”>
<frame name=”mainFrame” src=”index-withJavaScript.html”>
</frameset>
<noframes>
<body bgcolor=”#FFFFFF” text=”#000000″>
</body>
</noframes>
</html>’);
} else {
echo (“<h1>Please click <a href=”jsEnabled.php”>here</a></h1>”);
}
echo $
?>
Thanks