title: Submitting 2 Forms with 1 Button or 1 Input
body: <p>currently i have 2 Buttons (well 1 Button and 1 Input with a Bootstrap button class) I use to upload a picture, and add a text to that picutre.</p>
  
  <p>Ofcourse thats not a good way to handle it, and i would like to merge these 2 buttons into 1.</p>
  
  <p>First uploading the picture (triggering the dropzone script) and then adding the Text from a form to a SQL Database.</p>
  
  <p>I have to idea if its even possible to combine that into one.</p>
  
  <p>I have my code shown below.</p>
  
  <pre><code>&lt;!-- PICTURE UPLOAD USING DROPZONE --&gt;
  &lt;form action="upload/doupload.php" class="dropzone" id="datenhochlad" &gt;&lt;/form&gt;
  
  
  &lt;!-- FORM TABLE TO INPUT TEXT WHICH SHALL BE SENT TO SQL  --&gt;
          &lt;form method="post" id="texteingabetabelle"&gt;
              &lt;div&gt;
              &lt;table class="table table-bordered"&gt;
                  &lt;tbody&gt;
  
                      &lt;tr&gt;
                          &lt;td&gt;Text zum Bild:&lt;/td&gt;
                          &lt;td&gt;
                              &lt;input class="eingabe" type="text" name="bildtext" width="100px" /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;Bild ID:  &lt;?php echo $bildid+1 ?&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
  
                  &lt;/tbody&gt;
              &lt;/table&gt;
  &lt;/div&gt;
  
  &lt;!-- BUTTON TO EXECUTE DROPZONE -&gt; UPLOADING THE PICTURE --&gt;
          &lt;center&gt;&lt;button type="submit" id="hochladdaten" class="btn btn-primary"&gt;Bild Hochladen&lt;/button&gt;&lt;center&gt;
  &lt;br&gt;
  
  &lt;!-- BUTTON TO EXECUTE THE SQL QUERY  --&gt;
      &lt;input type="submit" class="btn btn-success" id="hochladdaten" name="hochladdaten" value="Text Senden" /&gt;
  
          &lt;/form&gt;
  
  
  
  
              &lt;!-- SQL STUFF --&gt;
              &lt;?php
  
      if(isset($_POST['hochladdaten']))
          {
              $bildtext = $_POST['bildtext'];
                  sleep(5);
  
              $omadbconnect-&gt;query("insert into bildertexte(text,bildid) values('$bildtext', '$bildid' )");
              sleep(1);
              header('Location: index.php');
          if(!$omadbconnect) 
          { echo mysqli_error();
           }
      else
      {
  
      }
  
           }  
  
      ?&gt;
  </code></pre>