title: Stop loading PHP page if javascript is not enabled
body: <p>I am trying to stop loading my php page if the javascript is not enabled on user's computer.</p>
  
  <p>below method working fine. However please let me know is it cross browsered and is it safe?</p>
  
  <pre><code>&lt;noscript&gt;
  &lt;?php
  echo "Please Enable JavaScript in your browser!";
  exit;
  ?&gt;
  &lt;/noscript&gt;
  
    &lt;div id="main"&gt;
      &lt;!-- #header --&gt;
      &lt;div id="header"&gt; 
          &lt;div id="logo"&gt;&lt;a href="homepage.php" title="Go to Homepage"&gt;&lt;span&gt;&lt;?php echo $Name;?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;.....
  </code></pre>
  
  <p>Please let me know anyother professional way I can do it.</p>
  
  <p>PS: Some of my user tried to disable JavaScript after page load.  This thing also affect some of my pages.  I am getting wrong values on submit since the js disabled.  I wanna overcome this situation please.</p>