title: PHP $_SERVER['PHP_SELF'] in Wordpress redirecting to the index page
body: <p>I have a wordpress website. There is a category page with a form on it to sort / filter the posts.</p>
  
  <p>I have tried using $_SERVER['PHP_SELF'] as the form action as i need to get the contents of the form to display the posts but when I do it redirects to the index page. </p>
  
  <p>Is there a reason for this? Or a better way to submit a form within wordpress.</p>
  
  <p>Thanks</p>