title: How to add a Keyword Filter for a php jquery database insert?
body: <p>I want to make a PHP database insert with jQuery. 
  How do I add a Keyword Filter in the code? If I write all the forbidden words in a xml out file <code>forbidden.xml</code> Thanks.</p>
  
  <p>insert page:</p>
  
  <pre><code>&lt;script type="text/javascript" src="../jquery-1.4.2.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  function send(){
      var toUrl = "Data.php";
      var method = 'GET';
          $.ajax({
          type:"POST",
          url:"Data.php",
          data:{
              name:$("#name").val(),
              sex:$("#sex").val()
          },
          beforeSend:function(){
              $("#display").html("Loading...");
          },
          success:function(data){
              $("#display").html(decodeURI(data));
              document.getElementById("display").innerHTML = "insert success";
          },
          error:function(data){
              document.getElementById("display").innerHTML = "insert error";
          }
      });
  }
  &lt;/script&gt;
  &lt;form name="input"&gt;
      name: &lt;input type="name" name="name" id="name" /&gt;
      sex: &lt;input type="sex" name="sex" id="sex" /&gt;
      &lt;input type="button" id="Submit" value="Submit" onclick="send()" /&gt;
  &lt;/form&gt; 
  &lt;div id="display"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>forbidden.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;dictionary language="EN"&gt;
      &lt;string&gt;aaa&lt;/string&gt;
      &lt;string&gt;bbb&lt;/string&gt;
      ...
  &lt;/dictionary&gt;
  </code></pre>