title: Go to anchor point in Dreamweaver server behavior
body: <p>I´m using a <strong>Dreamweaver server behavior</strong> to create an insert into a MySQL database with PHP. In the pop-up menu to configure the insert, I have the option to go to a specific page after that.</p>
  
  <p>I need to: </p>
  
  <p>1) Go to a specific anchor point in some page, and</p>
  
  <p>2) Show a message after the insert. </p>
  
  <p>The problem is that I write <strong>page.php#anchor</strong> in the goto field, and it doesn´t work, because the result outputs <strong>page.php#anchor?</strong>, with a final interrogation mark. The original Dreamweaver code for this is:</p>
  
  <pre><code>  $insertGoTo = "page.php#anchor";
    if (isset($_SERVER['QUERY_STRING'])) {
      $insertGoTo .= (strpos($insertGoTo, '?')) ? "&amp;" : "?";
      $insertGoTo .= $_SERVER['QUERY_STRING'];
    }
  </code></pre>
  
  <p>So, how can I solve this?</p>