Having issues with multiple forms in one page in php
<p>I issue i am having is that, I created two forms, it is A PROFILE PAGE one is for uploading user image to the database, while the other is for updating user basic information, like name, email etc. The issue i am having is that only one of the form is working, the other form stops working. here is my code.
            </p>

<pre><code> &lt;?php if ((isset($_POST["MM_update"])) &amp;&amp; ($_POST["MM_update"] ==     "pic_form") &amp;&amp;(($_POST['check'])=== 1)) {
$id=$_POST['monitorimg'];
move_uploaded_file($_FILES['pic']['tmp_name'],"imageupload/".$id);
   $updateSQL = sprintf("UPDATE administrator SET pix=%s WHERE adminid=%s",
                  GetSQLValueString($_POST['monitorimg'], "text"),
                   GetSQLValueString($_POST['ids'], "int"));

    mysqli_select_db($myconn,$database_myconn);
   $Result1 = mysqli_query($myconn,$updateSQL) or    die(mysqli_connect_error());
} 
  ?&gt;      


    &lt;div class="box box-primary"&gt;
                    &lt;div class="box-body box-profile"&gt;


           &lt;img class="profile-user-img img-responsive img-circle"    width="68" height="68" src="imageupload/&lt;?php echo $row_rslinks['adminid']; ?&gt;".""                     alt="profile picture"&gt;
              &lt;form action="&lt;?php echo $editFormAction; ?&gt;" name="pic_form" enctype="multipart/form-data" method="POST"&gt;
                   &lt;input type="file" name="pic" class="btn-facebook" required&gt;
                   &lt;input type="submit" class="btn-dropbox" name="sub" id="sub" value="Upload"&gt;
                   &lt;input type="hidden" name="ids" id="ids" value="&lt;?php echo $row_rslinks['adminid'];?&gt;"&gt;
                   &lt;input type="hidden" name="monitorimg" id="monitorimg" value="&lt;?php echo $row_rslinks['adminid'];?&gt;"&gt;
                   &lt;input type="hidden" name="MM_update" value="pic_form"&gt;
                  &lt;input type="hidden" name="check" id="check" value="1"&gt;
              &lt;/form&gt;

                        &lt;h3 class="profile-username text-center"&gt;&lt;/h3&gt;

                        &lt;p class="text-muted text-center"&gt;&lt;/p&gt;


  &lt;!-----------This is the second Table code--------------&gt; 


 &lt;?php  if ((isset($_POST["MM_update"])) &amp;&amp; ($_POST["MM_update"] == "form1") &amp;&amp;(($_POST['check'])=== 1)) {
  $updateSQL = sprintf("UPDATE administrator SET password=%s, adminname=%s, email_id=%s, contactno=%s WHERE adminid=%s",
                   GetSQLValueString($_POST['pwd'], "text"),
                   GetSQLValueString($_POST['inputName'], "text"),
                   GetSQLValueString($_POST['inputEmail'], "text"),
                   GetSQLValueString($_POST['num'], "text"),
                   GetSQLValueString($_POST['stuid'], "int"));

   mysql_select_db($database_myconn, $myconn);
   $Result1 = mysql_query($updateSQL, $myconn) or die(mysql_error());
    }

  ?&gt;
    &lt;div class="tab-content"&gt;
                    &lt;div class="active tab-pane" id="settings"&gt;
                    &lt;form action=&lt;?php echo $editFormAction; ?&gt;"" name=form11" method=POSTT" enctype="application/x-www-form-urlencoded" class="form-horizontal" id="form1"&gt;
                    &lt;div class="form-group" id="stuid"&gt;
                      &lt;label for="stuid" class="col-sm-2 control-label"&gt;User ID&lt;/label&gt;
                      &lt;div class="col-sm-10"&gt;
                        &lt;input name="stuid" type="text" class="form-control"  id="stuid"
                                               value="&lt;?php echo $row_rslinks['adminid']; ?&gt;" readonly&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="form-group" id="inputeName"&gt;
                      &lt;label for="inputName" class="col-sm-2 control-label"&gt;Name&lt;/label&gt;
                      &lt;div class="col-sm-10"&gt;
                        &lt;input type="text" class="form-control" name="inputName" id="inputName"
                                               value="&lt;?php echo $row_rslinks['adminname']; ?&gt;"&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="form-group"&gt;
                      &lt;label for="inputEmail" class="col-sm-2 control-label" &gt;Email&lt;/label&gt;
                      &lt;div class="col-sm-10"&gt;
                        &lt;input type="email" class="form-control" name="inputEmail" id="inputEmail" 
                                               value="&lt;?php echo $row_rslinks['email_id']; ?&gt;"&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="form-group"&gt;
                      &lt;label for="pwd" class="col-sm-2 control-label"&gt;Password&lt;/label&gt;
                      &lt;div class="col-sm-10"&gt;
                        &lt;input type="password" class="form-control" id="pwd" name="pwd" value=""&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="form-group"&gt;
                      &lt;label for="rpwd" class="col-sm-2 control-label"&gt;Re-Password&lt;/label&gt;
                      &lt;div class="col-sm-10"&gt;
                        &lt;input type="password" class="form-control" id="rpwd" name="rpwd" value=""&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="form-group"&gt;
                      &lt;label for="num" class="col-sm-2 control-label"&gt;Mobile&lt;/label&gt;
                      &lt;div class="col-sm-10"&gt;
                        &lt;input type="text" class="form-control" id="num" name="num" value="&lt;?php echo $row_rslinks['contactno']; ?&gt;"&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;&lt;input type="hidden" name="check" id="check" value="2"&gt;

                    &lt;div class="form-group"&gt;
                      &lt;div class="col-sm-offset-2 col-sm-10"&gt;
                        &lt;button type="submit" class="btn btn-primary"&gt;Save&lt;/button&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
</code></pre>

<p>Sorry guys for my long code....will appreciate your contribution. the second Table is not updating to my database..when the update button is pressed nothing happens. no error message is shown. </p>