Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs联系方式+;PHP_Php_Angularjs_Contact Form - Fatal编程技术网

Angularjs联系方式+;PHP

Angularjs联系方式+;PHP,php,angularjs,contact-form,Php,Angularjs,Contact Form,我似乎无法使用Angularjs中的联系人表单。按下按钮提交时,“Cnt\U meCntl”控制器中的提交功能未启动 HTML 打字错误:nh submit应该是ng submit@Shomz谢谢。现在,我有另一个问题。它找不到另一个文件夹中的PHP。我尝试了/folder/和…/,但什么都没有。 <article> <form id="contact-form" nh-submit='submit()' method="post"> <div>

我似乎无法使用Angularjs中的联系人表单。按下按钮提交时,“Cnt\U meCntl”控制器中的提交功能未启动

HTML


打字错误:
nh submit
应该是
ng submit
@Shomz谢谢。现在,我有另一个问题。它找不到另一个文件夹中的PHP。我尝试了/folder/和…/,但什么都没有。
<article>
    <form id="contact-form" nh-submit='submit()' method="post">
    <div>
    <label>
    <span>Name: (required)</span>
    <input placeholder="Please enter your name" type="text" ng-model="formData.name" required autofocus>
    </label>
    </div>
    <div>
    <label>
    <span>Email: (required)</span>
    <input placeholder="Please enter your email address" type="email" type="text" ng-model="formData.email" required>
    </label>
    </div>
    <div>
    <label>
    <span>Message: (required)</span>
    <textarea placeholder="Include all the details you can" ng-model="formData.message"  required></textarea>
    </label>
    </div>
    <div>
    <input name="submit" type="submit" value="Submit"/>
    </div>
    </form>
</article>
    ....when('/contact', {
        controller: 'Cnt_meCntl',
        templateUrl: '/content/Views/Contact.html'
   }).when('/resume', {
        controller: 'ResmeCntl',
        templateUrl: '/content/Views/Resume.html'
   })...
ospnWeb.controller('Cnt_meCntl', function($scope, $http){
    ...
    $scope.formData;
    $scope.submit = function () {
        console.log('Im in the controller');
        console.log($scope.formData);       
    }
});