title: How to submit a form to two different pages depending on the button clicked, without javascript
body: <p>I have a form with a text area and 2 buttons, i need one of them to submit to the same page its on and the other to submit to another php file. Both buttons need to allow the text areas to be referenced by post. How can i do this.</p>
  <p>For Example:</p>
  <blockquote>
  <pre><code>&lt;form action=&quot;&quot; method=&quot;post&quot;&gt;
  
     &lt;textarea&gt;&lt;/textarea&gt;
  
     &lt;input type='submit' value='Preview'&gt; //I want this to submit to the same page
  
     &lt;input type='submit' value='Save'&gt; // I want this to submit to save.php
  
  &lt;/form&gt;
  </code></pre>
  </blockquote>
  <p>Note: All my html is generated by php through different scripts that change depending on users previous actions.</p>