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 Link to comment https://forums.phpfreaks.com/topic/187161-alternate-content-question/ 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 Link to comment https://forums.phpfreaks.com/topic/187161-alternate-content-question/#findComment-988342 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.