smordue Posted January 4, 2010 Share Posted January 4, 2010 I have an include file that needs javascript enabled that I want to use as a default, I have an alternate include file that does not require js. How would I have: <?php include('pickerbarjs.php'); ?> replaced with: <?php include('pickerbar.php'); ?> if javascript is not detected? I have been reading about <noscript> but everything I see just disables the element without providing the alternative. Or I just don't understand...which is more likely. Steve Quote Link to comment Share on other sites More sharing options...
ignace Posted January 4, 2010 Share Posted January 4, 2010 use get_browser If you have php.ini access you can add the latest browscap from http://browsers.garykeith.com/downloads.asp Quote Link to comment 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.