title: I have a Contact form, and i'm try to connect it with PHP mail using Angularjs and get get data in php file
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>(function() {
    var app = angular.module('snc', []);
  
    app.controller("QueryController", function($http) {
      this.query = {};
  
      this.sendQuery = function(contact) {
        contact.querys.push(this.query);
        this.query = {};
      };
    });
  
  })();</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form name="queryForm" ng-controller="QueryController as queryCtrl" ng-submit="queryForm.$valid &amp;&amp; queryCtrl.sendQuery(contact)" novalidate&gt;
    &lt;blockquote&gt;
      &lt;b&gt;Name: {{queryCtrl.query.name}}&lt;/b&gt;&lt;br/&gt;
      &lt;b&gt;Mobile: {{queryCtrl.query.mobile}}&lt;/b&gt;&lt;br/&gt;
      &lt;b&gt;Eamil: {{queryCtrl.query.email}}&lt;/b&gt;&lt;br/&gt;
      &lt;b&gt;Message: {{queryCtrl.query.message}}&lt;/b&gt;&lt;br/&gt;
    &lt;/blockquote&gt;
    &lt;div class="form-group"&gt;
      &lt;label for="Name"&gt;Name:&lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;
      &lt;input type="text" ng-model="queryCtrl.query.name" class="form-control" id="name" placeholder="Enter Your Name" required&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
      &lt;label for="Mobile"&gt;Mobile:&lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;
      &lt;input type="number" ng-model="queryCtrl.query.mobile" class="form-control" id="mobile" placeholder="Enter Your Mobile Number" required&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
      &lt;label for="email"&gt;Email:&lt;/label&gt;
      &lt;input type="email" ng-model="queryCtrl.query.email" class="form-control" id="email" placeholder="Enter Your Email" required&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
      &lt;label for="Message"&gt;Message:&lt;/label&gt;
      &lt;textarea type="text" ng-model="queryCtrl.query.message" class="form-control" id="name" placeholder="Enter Your Message" rows="4" required&gt;&lt;/textarea&gt;
    &lt;/div&gt;
    &lt;div&gt; reviewForm is {{queryForm.$valid}} &lt;/div&gt;
    &lt;button type="submit" class="btn btn-snc"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I'm Using <em>ng-app="snc"</em> and Angularjs version 1.6, this is a simple contact form please check it and give me some advice. i want to send contact form into php page, where i use form data for send email for query and add it into database.</p>