title: how to manage the use of both $_SERVER['PHP_SELF'] in action of form and htaccess for urlrewriting together for same page?
body: <p>how to manage the use of both $_SERVER['PHP_SELF'] in action of form and htaccess for url-rewriting?</p>
  
  <p>If I submit a form and in the action attribute of it i pass "$_SERVER['PHP_SELF']" and at the same time i am using url rewriting for the same page.. then these two things will contradict each other resulting in the display of action value of form in address bar.. so how can i manage this to get the url rewrited form of $_SERVER['PHP_SELF']?</p>
  
  <p>here the rewrite rule is to change the name of url file likewise as if form is submitted to any file say <strong>direction.php</strong> then rewrite will change it to something <strong>30/redirect.html</strong></p>