title: How do I use 1 submit button to do 2 actions?
body: <p>I'm trying to submit data to a list in my mail chimp but also allow the user to upload a file. </p>
  
  <p>Here is my code, the first chunk is the mailchimp autogenerated form which is submitted via:</p>
  
  <pre><code>&lt;div class="clear"&gt;&lt;input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and then it's followed by the basic code to submit a file. But at the moment both functions have a submit button. I want only one. Can anyone help?</p>
  
  <pre><code>&lt;body&gt;
      &lt;!-- Begin MailChimp Signup Form --&gt;
      &lt;div id="mc_embed_signup"&gt;
          &lt;form action="http://test.us7.list-manage.com/subscribe/post?u=d12b70d4bb1e08c1568d5b392&amp;amp;id=bfb41cbf75" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate&gt;
              &lt;h2&gt;Subscribe to our test mailing list&lt;/h2&gt;
              &lt;div class="indicates-required"&gt;
                  &lt;span class="asterisk"&gt;*&lt;/span&gt; indicates required
              &lt;/div&gt;
              &lt;div class="mc-field-group"&gt;
                  &lt;label for="mce-EMAIL"&gt;
                      Email Address  &lt;span class="asterisk"&gt;*&lt;/span&gt;
                  &lt;/label&gt;
                  &lt;input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"&gt;
              &lt;/div&gt;
              &lt;div class="mc-field-group"&gt;
                  &lt;label for="mce-FNAME"&gt;First Name &lt;/label&gt;
                  &lt;input type="text" value="" name="FNAME" class="" id="mce-FNAME"&gt;
              &lt;/div&gt;
              &lt;div class="mc-field-group"&gt;
                  &lt;label for="mce-LNAME"&gt;Last Name &lt;/label&gt;
                  &lt;input type="text" value="" name="LNAME" class="" id="mce-LNAME"&gt;
              &lt;/div&gt;
              &lt;div class="mc-field-group input-group"&gt;
                  &lt;strong&gt;Interests &lt;/strong&gt;
                  &lt;ul&gt;
                      &lt;li&gt;&lt;input type="checkbox" value="1" name="group[5597][1]" id="mce-group[5597]-5597-0"&gt;&lt;label for="mce-group[5597]-5597-0"&gt;Interest 1&lt;/label&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;input type="checkbox" value="2" name="group[5597][2]" id="mce-group[5597]-5597-1"&gt;     &lt;label for="mce-group[5597]-5597-1"&gt;Interest 2&lt;/label&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;input type="checkbox" value="4" name="group[5597][4]" id="mce-group[5597]-5597-2"&gt;&lt;label for="mce-group[5597]-5597-2"&gt;Interest 3&lt;/label&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;div id="mce-responses" class="clear"&gt;
                  &lt;div class="response" id="mce-error-response" style="display:none"&gt;&lt;/div&gt;
                  &lt;div class="response" id="mce-success-response" style="display:none"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;form action="upload_file.php" method="post" enctype="multipart/form-data"&gt;
              &lt;label for="file"&gt;Filename:&lt;/label&gt;
              &lt;input type="file" name="file" id="file"&gt;&lt;br&gt;
              &lt;input type="submit" name="submit" value="Submit"&gt;
              &lt;div class="clear"&gt;
                  &lt;input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>