Posted by Jim Michaels on 01/19/06 23:01
<body>
<script language=javascript>
window.location.href="mypage.php?js=on";
<script>
<noscript>
<a href="mypage.php?js=off">click here to continue</a>
<noscript>
</body>
I am new to sessions, do somewhere in the code you wuold need to insert the
session stuff.
"Ian B" <ianbambury@gmail.com> wrote in message
news:1134647910.968633.6220@g44g2000cwa.googlegroups.com...
> <html>
> <head>
> <title> Best way I know is... </title>
> </head>
> <body>
> <?php
> if(isset($_GET['js']))
> {
> echo "JS is on";
> //
> // Code for JS on
> //
> }
> else
> {
> echo "
> <form name='testjs'>
> <input type='hidden' name='js' value='on'>
> </form>
> <script>
> <!--
> document.testjs.submit()
> //-->
> </script>
> ";
> echo "JS is off";
> //
> // Code for js off
> //
> }
> ?>
> </body>
> </html>
>
[Back to original message]
|