title: Jquery $.ajax function data parameters
body: <p>ı need to send data one is array another is single data.</p>
  
  <pre><code>var img=$('#image').val(); // image name
  
  var formdatas=($(this).serialize()); // data from form, including to many data
  
  data:formdatas, //legal
  data:{f:formdatas,r:img}, //legal but formdatas is an array ı cant send it like this
  </code></pre>
  
  <p>but ı need something like this.</p>
  
  <pre><code>data:{formdatas,r:img}, // this is not working
  </code></pre>
  
  <p>and this is my complete code, ı just need to send 2 different data. </p>
  
  <pre><code>$('#lastikekle').submit(function() {
  
      var resim=$('#resim').val();
  
      var formverileri=($(this).serialize());
  
      $.ajax({
                type:"POST",          
                url: "lastikekle.php",
                data:{formverileri,r:resim}, ????
                success: function(result){
  
                  $( "#dialog" ).dialog();
                  $("#dialog").html(result);
                                          }   
          });
  
  
      });
  </code></pre>