mme Posted August 2, 2008 Share Posted August 2, 2008 Hi I am trying to see if javascript is turned off using php. <?php $java=1; ?> <noscript> <?php $java=0; ?> </noscript> Why isn't this code working? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/117788-javascript-and-php/ Share on other sites More sharing options...
.josh Posted August 2, 2008 Share Posted August 2, 2008 because php is parsed on the server and the output is then sent to the browser. Your browser doesn't know anything about $java. By the time it gets to the browser all it sees is your tags. Quote Link to comment https://forums.phpfreaks.com/topic/117788-javascript-and-php/#findComment-605828 Share on other sites More sharing options...
unkwntech Posted August 2, 2008 Share Posted August 2, 2008 Check this out http://unkwndesign.com/blog/?p=10 Quote Link to comment https://forums.phpfreaks.com/topic/117788-javascript-and-php/#findComment-605979 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.