title: Show message after submit the form.
body: <p>This is not working for the way I would like it to work. It prints out the message at the bottom of my body element, below form. Message should be printed inside the form element, below submit button.</p>
  
  <p>PHP code</p>
  
  <pre><code>if (mail ($to, $subject, $body, $headers)) {
                  echo '&lt;p&gt;Your message has been sent!&lt;/p&gt;';
              } else {
                  echo '&lt;p&gt;Something went wrong, go back and try again!&lt;/p&gt;';
              }
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;form&gt;
  &lt;div class="control-group"&gt;
    &lt;label class="control-label" for="submit"&gt;&lt;/label&gt;
      &lt;div class="controls"&gt;
       &lt;button&gt;Submit&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I tried to give a class to echo paragraph, but all it does is add another paragraph below the form. This is happening on the same php page.</p>