title: Usage of Ajax post
body: <p><strong>EDIT:</strong>
  This is what i managed to build...but it still dont work..</p>
  
  <pre><code>    $(document).ready(function(){
    $("tr").click(function(){
      txt=$("input[name=path]").val();
     $.ajax({
     type: "POST",
     url: contract.php, // the same page where i have the table
     data: txt,         // the variable containing the dynamic id from the clicked row
     success: success,  // i have no idea what is this parameter for....
     dataType: dataType  // i have no idea what is this parameter for....
  });
    });
  });
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>$row=mysql_fetch_array($query){
  echo '&lt;tr id="'.$row['id'].'"&gt;';
   echo '&lt;td&gt;&lt;/td&gt;';
  echo '&lt;/tr&gt;';
  }
  </code></pre>
  
  <p>What i want,is when the user click on a row , the row id(which is dynamic), must be taken , and returned with ajax post , so i can use it in another query.<strong>I have to do this without reloading the page, thats why i try to do it with ajax.</strong></p>