title: Passing PHP through JQuery.Ajax Post & Changing html
body: <p>I'm trying to create a facebook style like/unlike link and I need to pass some php variables through the JQuery.  At the moment I'm passing:</p>
  
  <pre><code>&lt;a class="likelink" href="like.php?id=****&amp;username=****&amp;type=****"&gt;Like&lt;/a&gt;
  </code></pre>
  
  <p>But although this works it is refreshing the page and I want it to do it fluently like twitter or facebook, so I need to pass the id, username, etc through JQuery.Ajax post.  Can anyone tell me how this would be possible? Also then I want the .likelink to change to Unlike.</p>
  
  <p>Thanks</p>