title: Jquery - Post with variable
body: <p>i have a problem with the jquery post.</p>
  
  <p><strong>my vars</strong></p>
  
  <pre><code>var checki = '1';
  var my_var = 't95';
  </code></pre>
  
  <p><strong>this works fine</strong></p>
  
  <pre><code>var data = { 'mo': 'usr', 'dt': 'update_uis', 'values[0][t95]': checki']}; 
  </code></pre>
  
  <p><strong>but when when i insert the var, it will not work</strong></p>
  
  <pre><code>var data = { 'mo': 'usr', 'dt': 'update_uis', 'values[0]['+my_var+']': checki']}; // dont work
  
  
  
  $.ajax({    type:           'post',
              cache:          false,
              url:            'tsal.php',
              data:           data,
              dataType:    'json',
              success:     function (data)
              {
                  // blub
              }
  });  
  </code></pre>
  
  <p>My problem is that i dont get an error. 
  Hope somebody can help me.</p>
  
  <p>Thanks in advance!
  Peter</p>