title: Ask if you are sure you want to submit? JavaScript?
body: <p>I currently have this.</p>
  
  <pre><code> //other stuff up here - not important
      echo "&lt;td&gt;&lt;form action='redeem.php' method='post' id='form'&gt;&lt;input type='hidden' name='redeem' value='1' /&gt;&lt;input type='hidden' name='id' value='" . $id . "' /&gt;&lt;input type='submit' name='Redeem' value='Redeem'&gt;&lt;/form&gt;&lt;/td&gt;";
      } else {
      echo "&lt;td&gt;&lt;form action='redeem.php' method='post' id='form'&gt;&lt;input type='hidden' name='redeem' value='0' /&gt;&lt;input type='hidden' name='id' value='" . $id . "' /&gt;&lt;input type='submit' name='Un-Redeem' value='Un-Redeem'&gt;&lt;/form&gt;&lt;/td&gt;";
  //other stuff down here - not important
  </code></pre>
  
  <p>and I want to change it so that when you press:<br />
  a) the 'Redeem' SUBMIT button it alerts you saying, "Are you sure you want to Redeem?"<br />
  b) the 'Un-Redeem' SUBMIT button it alerts you saying, "Are you sure you want to Un-Redeem?"<br /></p>
  
  <p>I have tried a few of them including the ONCLICK on the submit but none worked.. and I believe that is because I have it in an ECHO and I had to remove the (") quotation marks which stopped the function from happening.</p>
  
  <p>Anyone know another way I can do it?</p>