title: Changing from GET to POST
body: <p>I am not an experienced developer but I am currently in an apprenticeship and my senior developer has recently left and im all alone!</p>
  
  <p>I was taught from him that using 'GET' requests was better than 'POST' but after reading up I would like to switch to 'POST' my only problems is I am a little unsure how to modify my code to switch over from 'GET'. I have left a common $scope of our system below. Any help will be great</p>
  
  <pre><code>$scope.changenote=function(id,note){
  note = encodeURIComponent(note);
  var inserthistory = './dbscripts/solicitors/changenote.php?id=' + id + '&amp;user=' + AppStorage.getCurrentUser().username + '&amp;note=' + note;
  console.log(inserthistory);
                      $http({method: 'GET', url: inserthistory}).success(function(data) {
  
         var historyurl = './dbscripts/solicitors/gethistory.php?ref=' + $scope.bbref;
  
              $http({
                  method: 'GET',
                  url: historyurl
              }).success(function(data) {
                  $scope.histnoteaddbtn = [];
                  $scope.history = data;
               $state.go($state.current, {}, {
                      reload: true
  
              });
      });
   swal("Saved!", "Your note has been saved!", "success")
  })
  }
  </code></pre>