title: Go to previous page after submitting a form to a PHP file with a div loaded to specific content
body: <p>I have a logic problem maybe:</p>
  <ol>
  <li>I have a page that has a div called #content,</li>
  <li>in which I've loaded another page that has a form to submit data* (I have other pages loaded into the same #content but not &quot;active&quot; at the same time, because one of them are loaded on a click event via AJAX)</li>
  <li>Data* that another PHP file processes.</li>
  </ol>
  <p>when the process ends in that PHP file, I want to get back to the previous page so, I use:</p>
  <pre><code>&gt; header('Location: '.$SERVER['HTTP_REFERER']);
  </code></pre>
  <p>But, (the problem comes up here.)</p>
  <p>When I get back into my main page that holds that famous #content div. the page loaded into the #content isn't the exactly previous one, so this is very annoying when the user works on it, because they need to click again the desired button to be loaded into #content.</p>
  <p>Any idea to solve this problem?</p>