title: Cakephp 2, back/cancel button to go to the previous page
body: <p>If I have a form, and don't click submit before hand, using standard javascript history.</p>
  
  <pre><code>&lt;button onclick="history.go(-1);"&gt;Back &lt;/button&gt;
  </code></pre>
  
  <p>will bring me back to the previous page. However, if I click submit, and error come out (validation).
  the back button will bring me back to the same page (the page before the submit error happen).</p>
  
  <p>How can I create a back button where it always bring to the previous page, regardless error of validation.</p>
  
  <p>Thank you</p>