angular 表单提交不到php,请问那里写错了​,路径用的是相对路径。


<div class="register">
 <form action="../../db/adduser.php" class="d-b ta-c" name="form" method="post">
   <div class="form-line ta-l p-r">
     <span class="icon account va-t d-ib"></span>
     <input name="phone" ng-model="user.phone" validator="required,phone" class="d-ib" type="text" placeholder="输入手机号">
   </div>
   <div class="form-line ta-l p-r">
     <span class="icon lock va-t d-ib"></span>
     <input name="password" ng-model="user.password" validator="required,password" class="d-ib" type="password" placeholder="设置6位以上的密码">
   </div>
   <div class="message-wrap ta-l p-r">
     <input name="code" validator="required" ng-model="user.code" class="message-box" placeholder="短信验证码" type="text">
     <span class="message f-r {{time?'disabled':''}}" ng-click="time?1==1:send();" ng-bind="time?time:'发送短信'"></span>
     <div class="clear"></div>
   </div>
   <button class="login-btn" ui-sref="login">登录</button>
   <button class="register-btn" validation-submit="form" ng-click="submit()">注册</button>
 </form>
</div>

我爱钱端
浏览 1607回答 1
1回答

我爱钱端

<div class="register">  <form action="../../db/adduser.php" class="d-b ta-c" name="form" method="post">    <div class="form-line ta-l p-r">      <span class="icon account va-t d-ib"></span>      <input name="phone" ng-model="user.phone" validator="required,phone" class="d-ib" type="text" placeholder="输入手机号">    </div>    <div class="form-line ta-l p-r">      <span class="icon lock va-t d-ib"></span>      <input name="password" ng-model="user.password" validator="required,password" class="d-ib" type="password" placeholder="设置6位以上的密码">    </div>    <div class="message-wrap ta-l p-r">      <input name="code" validator="required" ng-model="user.code" class="message-box" placeholder="短信验证码" type="text">      <span class="message f-r {{time?'disabled':''}}" ng-click="time?1==1:send();" ng-bind="time?time:'发送短信'"></span>      <div class="clear"></div>    </div>    <button class="login-btn" ui-sref="login">登录</button>    <button class="register-btn" validation-submit="form" ng-click="submit()">注册</button>  </form> </div>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

AngularJS