title: How to use an HTML # anchor in a dynamic URL
body: <p>I want to link to a section of a dynamic page using the <code>#</code> anchor. Something like this:</p>
  <pre><code>&lt;a href=page.php?id=3#section-name&gt;LINK&lt;/a&gt;
  </code></pre>
  <p>It didn't work. What is the right way to do it?</p>
  <p>I'm not using a direct link, but a redirect like <code>header(&quot;Location:page.php?id=3#section-name&quot;)</code> from another script.</p>
  <p>I have a section named <code>section-name</code> in file <em>page.php</em>. I guess <em>page.php</em> has a problem figuring out the value of the id to process (<code>3</code> or <code>3#section-name</code>). I am redirected to <em>page.php</em> which has its content repeated vertically.</p>