Forum Moderators: coopster

Message Too Old, No Replies

Is that correct scipt?

         

rokec

2:37 pm on Nov 15, 2006 (gmt 0)

10+ Year Member



Can someone tell me if that script is ok?


<noscript />
<?php $java=1;?>
</noscript>
<?php if ($java==1){...}

eelixduppy

8:05 pm on Nov 15, 2006 (gmt 0)



No this is not correct. The PHP is independent of the HTML.

There is no way for PHP to know if the user has JavaScript enabled or not without getting outside information.