title: POST request inserting null values into MS SQL db
body: <p>This is my code -</p>
  
  <pre><code>onSubmit(){ 
    var headers = new Headers();   
    headers.append('Content-Type', 'application/x-www-form-urlencoded');
    let postParams = {
      firstName : this.firstName, 
      lastName : this.lastName,
      gender: this.myGender,
      myDate : this.myDate
    };
  
    this.http.post("ip/member", {postParams, headers}).subscribe(data =&gt; {
      console.log(data);
    }, error =&gt; {
      console.log(error); // Error getting the data
    });
  }
  </code></pre>
  
  <p>I don't have a lot of experience with Angular so I'm not quite sure what's going on, but this is inserting null values into my MS SQL database. This is what the Node API looks like:</p>
  
  <pre><code>app.post('/member', function(req, res) {
      console.log("creating member\n");
      request = new Request("INSERT INTO [dbo].[tblMemberInfo] VALUES (@firstName, @lastName, @gender, @dateOfBirth);", function(err) {  
          if (err) {  
              console.log(err);}  
          });  
          request.addParameter('firstName', TYPES.VarChar , req.query.firstName);  
          request.addParameter('lastName', TYPES.VarChar, req.query.lastName);  
          request.addParameter('gender', TYPES.VarChar, req.query.gender); 
          request.addParameter('dateOfBirth', TYPES.Date, req.query.dateOfBirth); 
  
          request.on('doneProc', function(rowCount, more) {  
              console.log('Member added');  
          });       
         connection.execSql(request);      
   })
  </code></pre>
  
  <p>I've tried inserting using Postman and it works fine, and I've also ensured that all of my postParams in the Angular have values. Anyone have any idea what's going on?</p>