Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/239.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发布/url&;PHP邮件格式_Php_Angularjs_Forms_Post - Fatal编程技术网

无法使用AngularJS发布/url&;PHP邮件格式

无法使用AngularJS发布/url&;PHP邮件格式,php,angularjs,forms,post,Php,Angularjs,Forms,Post,我正试图通过带有PHPMailer的AngularJS应用程序发送电子邮件。每次提交表单时,我都会被重定向到urlhttp://192.168.1.38:3000/#/contact说 无法发布/ 我的联系人表单位于另一个html文件pages/contact.html中,发送路线为 .when('/contact', { templateUrl : 'pages/contact.html', controller : 'ContactC

我正试图通过带有PHPMailer的AngularJS应用程序发送电子邮件。每次提交表单时,我都会被重定向到url
http://192.168.1.38:3000/#/contact

无法发布/

我的联系人表单位于另一个html文件
pages/contact.html
中,发送路线为

        .when('/contact', {
          templateUrl : 'pages/contact.html',
          controller  : 'ContactController'
        });
我的联系方式以

 <form ng-submit="submit(contactform)" name="contactform" method="post" action="" class="form-horizontal" role="form">
“网络”选项卡显示:

Remote Address:192.168.1.38:3000
Request URL:http://192.168.1.38:3000/
Request Method:POST
Status Code:404 Not Found
----------------------------------------------
Content-Type:application/x-www-form-urlencoded

但是,我确实从web应用程序收到了从电子邮件表单发送的电子邮件,因此我只能消除此错误。我已尝试将整个应用程序上载到服务器上,但仍会出现相同的错误。

删除
action=“”
,页面将不会尝试重定向。如果您确实想显示成功页面,请将其放在
action=”“

是否尝试完全删除操作属性?@MarcoAurélioDeleu我不敢相信这是解决方案。我删除了动作属性,现在它像一个符咒一样工作。。。真奇怪
Remote Address:192.168.1.38:3000
Request URL:http://192.168.1.38:3000/
Request Method:POST
Status Code:404 Not Found
----------------------------------------------
Content-Type:application/x-www-form-urlencoded