title: AJAX Post to self in PHP
body: <p>I feel like this is something that I should have learned by now, and I'm sure it's something small I'm missing, but I could use clarification to make sure my approach is correct.</p>
  
  <p>I'm using AJAX to post data to <code>self</code> which is a file that contains php and html. I can write the php fine, but after a successful ajax post, how do I only return the data that is processed via php and not the remaining html? Is it better to just post to a separate script?</p>