title: Form submission with two buttons "save" and "save & submit"?
body: <p>I have one form with around 50 fields and two submit buttons, "SAVE" and "SAVE &amp; SUBMIT". If the user clicks "SAVE", then insert the value up to which user have filled in the form. When user clicks "SAVE &amp; SUBMIT" button, it should update or insert all the fields which user have filled in the form. Please help me out if any one have any solution. I am newbie.</p>
  
  <pre><code>&lt;form id="myform"&gt;
  &lt;input type="text" name="field1" /&gt;
  &lt;br/&gt;
  &lt;input type="text" name="field2" /&gt;
  &lt;br/&gt;
  &lt;input type="text" name="field3" /&gt;
  &lt;br/&gt;
  &lt;input type="text" name="field4" /&gt;
  &lt;br/&gt;
  &lt;input type="submit" id="button1" value="Save" /&gt;
  &lt;input type="submit" id="button2" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>From the above form if user have entered values in field1 and field2 and then click on save the data should insert in the mysql and if user have fill all the fields then user can click on save and submit then data should update or insert in the mysql.</p>