I have a piece of code below where it displays a message if javascript is turned off:
<noscript style='color: red'><img src="Images/warning-2.fw.png" alt="Javascript Warning" id="warningImage" name="warningSymbol"/> In order to use this application without any problems, you must have javascript enabled</noscript>
Now the message is displayed in the noscript.php page so what I have done is externalize it by using include() to make include(noscript) and I have included this in all of my php scripts as so:
Text.php (example)
include('noscript')
//rest of page code
Now what is happening at the moment is that if javascript is turned off, it displays the javascript message but it displays the reset of the code as well so it outputs all of the page features.
What I want to do is that if javascript is turned off, then I want it to display the message but not the rest of code below, I just want the javascript message to appear. Only when javascript is turned back on then can the user see the proper page showing the page features.
But how can I do this?
include('noscript.php');.