On the index.php script, it will be something like this,
The alternative solution to this is to use the noscript tag which is very simple and make your life a better place to live in.
Many will turn to noscript tag that can really ease and simplify the way we code. However, for some system which required to determine whether script is enabled for different server script to run. This might help those that are doing such approach as noscript tag will only run after the server has processed its information. On the other hand, you can combine this approach with the no tag approach to better validate your logic.