title: form button worked before, now it doesn't anymore
body: <pre><code>&lt;script&gt;
  $(document).ready(function() {
      var panels = $('.user-infos');
      var panelsButton = $('.dropdown-user');
      panels.hide();
  
      //Click dropdown
      panelsButton.click(function() {
          //get data-for attribute
          var dataFor = $(this).attr('data-for');
          var idFor = $(dataFor);
  
          //current button
          var currentButton = $(this);
          idFor.slideToggle(400, function() {
              //Completed slidetoggle
              if(idFor.is(':visible'))
              {
                  currentButton.html('&lt;i class="glyphicon glyphicon-chevron-up text-muted"&gt;&lt;/i&gt;');
              }
              else
              {
                  currentButton.html('&lt;i class="glyphicon glyphicon-chevron-down text-muted"&gt;&lt;/i&gt;');
              }
          })
      });
  
  
      $('[data-toggle="tooltip"]').tooltip();
  
      $('button').click(function(e) {
          e.preventDefault();
      });
  });
  &lt;/script&gt;
  &lt;script&gt;
  function showMe(){
         document.querySelector('#change').style.display = '';
              document.querySelector('#keep').style.display = 'none'
         document.querySelector('#change1').style.display = '';
              document.querySelector('#keep1').style.display = 'none'
         document.querySelector('#change2').style.display = '';
              document.querySelector('#keep2').style.display = 'none'
         document.querySelector('#change3').style.display = '';
              document.querySelector('#keep3').style.display = 'none'
         document.querySelector('#change4').style.display = '';
              document.querySelector('#keep4').style.display = 'none'
         document.querySelector('#change5').style.display = '';
              document.querySelector('#keep5').style.display = 'none'
  }
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() {
      $('#wrapper').dialog({
          autoOpen: false,
          title: 'Upload an image!'
      });
      $('#opener').click(function(e) {
          e.preventDefault();
          $('#wrapper').dialog('open');
      });
  });
  &lt;/script&gt;  
  
      &lt;/head&gt;
      &lt;body id="top"&gt;
  
          &lt;!-- Header --&gt;
              &lt;header id="header"&gt;
                  &lt;div class="inner"&gt;
                  &lt;img src="logo-small.png" alt="" /&gt;
                  &lt;br&gt;&lt;/br&gt;
                      &lt;h1&gt;Jasmine&lt;/h1&gt;
                  &lt;/div&gt;
              &lt;/header&gt;
  
          &lt;!-- Main --&gt;
              &lt;div id="main"&gt;
  
                  &lt;!-- One --&gt;
                      &lt;section id="one"&gt;
                  &lt;div class="container"&gt;
                  &lt;a href="logout.php" id ="logout"&gt;Logout&lt;/a&gt;
  &lt;?php 
  if($_GET['a'])
  {
  
  echo '&lt;p style= "color:red;"&gt; Please select an appropriate image ';
  
  
  }
  ?&gt; 
        &lt;div class="row"&gt;
        &lt;div class="col-md-5  toppad  pull-left col-md-offset-3 "&gt;
  
         &lt;br&gt;
          &lt;br&gt;
      &lt;!-- &lt;p class=" text-info"&gt;May 05,2014,03:00 pm &lt;/p&gt;--&gt;
        &lt;/div&gt;   
            &lt;div class="panel panel-info"&gt;
              &lt;div class="panel-heading"&gt;
                &lt;h3 class="panel-title"&gt;&lt;?php echo $firstname . " ". $lastname;  ?&gt;&lt;/h3&gt;
              &lt;/div&gt;
               &lt;form method= "post" action= "edit.php"&gt;
              &lt;div class="panel-body"&gt;
                &lt;div class="row"&gt;
  
                  &lt;div class="col-md-3 col-lg-3 " id= "show"&gt; &lt;img alt="User Pic" src= &lt;?php echo "../profilepic/" .$path; ?&gt; class="img-circle img-responsive"&gt;
                  &lt;button class="btn btn-sm btn-info" id="opener"&gt;&lt;i class="glyphicon glyphicon-edit"&gt;&lt;/i&gt;&lt;/button&gt;
                   &lt;/div&gt;
                  &lt;div class=" col-md-9 col-lg-9 "&gt; 
                    &lt;table class="table table-user-information"&gt;
                      &lt;tbody&gt;
                        &lt;tr&gt;
                          &lt;td&gt;First name:&lt;/td&gt;
                          &lt;td&gt;&lt;span id= "keep"&gt;&lt;?php echo $firstname;?&gt;&lt;/span&gt;&lt;input id= "change" value= "&lt;?php echo $firstname;  ?&gt;" style= "display:none;" name="name"&gt;&lt;/td&gt; 
                        &lt;/tr&gt;
                        &lt;tr&gt;
                          &lt;td&gt;Last name:&lt;/td&gt;
                          &lt;td&gt;&lt;span id= "keep5"&gt;&lt;?php echo $lastname;?&gt;&lt;/span&gt;&lt;input id= "change5" value= "&lt;?php echo $lastname;  ?&gt;" style= "display:none;" name="lname"&gt;&lt;/td&gt; 
                        &lt;/tr&gt;
                        &lt;tr&gt;
                          &lt;td&gt;Date of Birth&lt;/td&gt;
                          &lt;td&gt;&lt;span id= "keep1"&gt;&lt;?php echo $birthday; ?&gt;&lt;/span&gt;&lt;input id= "change1" value= "&lt;?php echo $birthday; ?&gt;" style= "display:none;" name="bday"&gt;&lt;/td&gt;
                        &lt;/tr&gt;
  
                           &lt;tr&gt;
                               &lt;tr&gt;
                          &lt;td&gt;Gender&lt;/td&gt;
                          &lt;td&gt;&lt;span id= "keep2"&gt;&lt;?php echo $gender; ?&gt;&lt;/span&gt;&lt;input id= "change2" value= "&lt;?php echo $gender; ?&gt;" style= "display:none;" name="gen"&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                          &lt;tr&gt;
                          &lt;td&gt;Country&lt;/td&gt;
                          &lt;td&gt;&lt;span id= "keep3"&gt;US&lt;/span&gt;&lt;input id= "change3" value= "US" style= "display:none;" name="country"&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                          &lt;td&gt;Email&lt;/td&gt;
                          &lt;td&gt;&lt;span id= "keep4"&gt;&lt;a href="mailto:info@support.com"&gt;&lt;?php echo $email; ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;input id= "change4" value= "&lt;?php echo $email; ?&gt;" style= "display:none;" name="mail"&gt;&lt;/td&gt;
                        &lt;/tr&gt;
  
                      &lt;/tbody&gt;
                    &lt;/table&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
  
                   &lt;div class="panel-footer"&gt;
                          &lt;a data-original-title="Broadcast Message" data-toggle="tooltip" type="button" class="btn btn-sm btn-primary"&gt;&lt;i class="glyphicon glyphicon-envelope"&gt;&lt;/i&gt;&lt;/a&gt;
                          &lt;span class="pull-right"&gt;
                              &lt;a href="#" data-original-title="Edit this user" data-toggle="tooltip" type="button" class="btn btn-sm btn-warning" onclick = 'showMe()'&gt;&lt;i class="glyphicon glyphicon-edit"&gt;&lt;/i&gt;&lt;/a&gt;
          &lt;button data-original-title="Save this user" data-toggle="tooltip" type="submit" class="btn btn-sm btn-success" id="edit"&gt;&lt;i class="glyphicon glyphicon-saved"&gt;&lt;/i&gt;&lt;/button&gt;
  
                          &lt;/span&gt;
                      &lt;/div&gt;
              &lt;/form&gt;
            &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;    
  
   &lt;div id="wrapper"&gt;
  
  
  &lt;form method="POST" action="getdata.php" enctype="multipart/form-data"&gt;
  &lt;input type="file" name="image"&gt;
  &lt;input id="images" type="submit" value="Upload"&gt;
  &lt;/form&gt;
  
  &lt;/div&gt;
                      &lt;/section&gt;
  </code></pre>
  
  <p>I have this form, and as you can see it goes to edit.php when I click the save/submit button, it used to work, now it doesn't anymore I'm not sure why, can anyone tell me what I am missing? It stopped working when I added the other form that is at the button for "upload image", but I checked all my errors and there aren't any about the forms and they don't clash, can anyone see what the issue is, Im stuck on it.</p>