title: Ajax post and get checkbox value
body: <p>I have this code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function processForm() { 
  $.ajax( {
      type: 'POST',
      url: '/ajax/checkbox.php?name=foton',
      data: { checked_box : $('input:checkbox:checked').val()},
  
      success: function(data) {
          $('#message').html(data);
      }
  } );
  }
  &lt;/script&gt;
  
  &lt;input type="checkbox" name="foton" value="1" onclick="processForm()"&gt;
  </code></pre>
  
  <p>checkbox.php file:</p>
  
  <pre><code>    $checkbox = intval($_POST['foton']);
  
  if($checkbox == 1){
      mysql_query("UPDATE users SET sekretessFoton = 1 WHERE userID = $memberID");
  }else{
      mysql_query("UPDATE users SET sekretessFoton = 0 WHERE userID = $memberID");    
  }
  </code></pre>
  
  <p>The problem is that i dont get any value from $_POST['foton']
  What is wrong? </p>
  
  <p>Thanks</p>