title: Javascript input issue
body: <p>I have written a code for redirecting the page on submitting the form.
  I have a drop down and textbox in that form.
  I typed  <code>&lt;/script&gt;</code> as input for the textbox , which had lead to normal excution but  with <code>);</code> on screen.</p>
  
  <p>this is what i got from my firebug tool</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  loadSearch('Customer','
  &lt;/script&gt;
  '); 
  </code></pre>
  
  <p>PHP CODE for submit</p>
  
  <pre><code>&lt;?php
  if($_POST['searchButton']){
      echo "&lt;script type='text/javascript'&gt;loadSearch('".$_REQUEST['search_details']."','".$_REQUEST['search_input']."'); &lt;/script&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>JAVASCRIPT</p>
  
  <pre><code>function loadSearch(selM,selK){
      document.location.href="index.php?pg=search&amp;selM="+selM+"&amp;selK="+selK;
  }//loadSearch
  </code></pre>
  
  <p>Note: <code>$_REQUEST['search_input']</code> is the textbox and if the textbox is given with <code>&lt;/script&gt;</code> as input </p>