title: Simple jQuery post not working on Internet Explorer 9 (access denied)
body: <p>I programmed a validator with JQuery and PHP that works in all browsers except Internet Explorer 9. I get the error message "SCRIPT5: Access denied".</p>
  
  <p>jQuery code</p>
  
  <pre><code>$('#contact-send').click(function(){
    $.post('functions/db-contact.php',{
      contact_name: $('#contact-name').val(),
      contact_email: $('#contact-email').val(),
      contact_subject: $('#contact-subject').val(),
      contact_message: $('#contact-message').val()
    },
    function(x){
      console.log(x);
    }
  });
  </code></pre>
  
  <p>And this is the response (x):</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;response&gt;
    &lt;mail&gt;
      &lt;name&gt;1&lt;/name&gt;
      &lt;email&gt;1&lt;/email&gt;
      &lt;subject&gt;1&lt;/subject&gt;
      &lt;message&gt;1&lt;/message&gt;
      &lt;status&gt;notok&lt;/status&gt;
    &lt;/mail&gt;
  &lt;/response&gt; 
  SCRIPT5: Access denied
  </code></pre>
  
  <p>EDIT: I really have no idea what can be the error. I added the DB contact file. @Brad :)</p>
  
  <pre><code>&lt;?php
  include 'db_login.php';
  
  $name = mysql_escape_string($_POST['contact_name']);
  $email = mysql_escape_string($_POST['contact_email']);
  $subject = mysql_escape_string($_POST['contact_subject']);
  $message = mysql_escape_string($_POST['contact_message']);
  
  echo "&lt;?xml version=\"1.0\"?&gt;\n";
  echo "&lt;response&gt;\n";
  echo "\t&lt;mail&gt;\n";
  
  $i = 0;
  if($name == 'type your name' or $name == '' or strlen(trim($name)) == 0){
    echo "\t\t&lt;name&gt;1&lt;/name&gt;\n";
    $i = 1;
  }
  
  if($email == 'type your email address' or $email == '' or strlen(trim($email)) == 0){
    echo "\t\t&lt;email&gt;1&lt;/email&gt;\n";
    $i = 1;
  }
  
  if($subject == 'type subject' or $subject == '' or strlen(trim($subject)) == 0){
    echo "\t\t&lt;subject&gt;1&lt;/subject&gt;\n";
    $i = 1;
  }
  
  if($message == 'type your message on us' 
    or $message == '' or strlen(trim($message)) == 0){
      echo "\t\t&lt;message&gt;1&lt;/message&gt;\n";
      $i = 1;
  }
  
  if($i == 1){
    echo "\t\t&lt;status&gt;notok&lt;/status&gt;\n";
    echo "\t&lt;/mail&gt;\n";
    echo "&lt;/response&gt;";
    return false;
  }
  
  $sql = "INSERT INTO `d013f578`.`mail` (`id`, `name`, `email`, `subject`, `message`)
         VALUES (NULL, '".$name."', '".$email."', '".$subject."', '".$message."');";
  $query = mysql_query($sql) or die;
  echo "\t\t&lt;status&gt;ok&lt;/status&gt;\n";
  echo "\t&lt;/mail&gt;\n";
  echo "&lt;/response&gt;";
  ?&gt;
  </code></pre>
  
  <p>Unfortunately I have not found any usable tip on the internet.</p>