title: jquery ajax() data, can only pass parameters as string
body: <pre><code>function db_query(id)
  {
      $.ajax({   
          type: "GET",
          url: "db_handler.php",          
          data: { row_id:id, foo: "bar" },
          dataType: "html",  
          success: function(response){                   
                    // ...
          }
      });   
  }
  </code></pre>
  
  <p>Hey guys, what am I doing wrong here?</p>
  
  <p>In my php script I receive the variables passed as strings, but I'm unable to read them when they are passed as variables.</p>
  
  <p>$_GET output:</p>
  
  <pre><code>Array
  (
      [foo] =&gt; bar
  )
  </code></pre>