2016-06-20 27 views
1

如果我在表單中添加第一個div,submit按鈕停止工作。必須以某種方式與嵌套的'post'調用和不同的.php文件相關。在html中嵌套的'post'調用

<form action="register.php" method="post"> 
         <div id="kv-avatar-errors-1" class="center-block" style="width:800px;display:none"></div> 
         <form class="text-center" action="/avatar_upload.php" method="post" enctype="multipart/form-data"> 
          <div class="kv-avatar center-block" style="width:200px;text-align:center;"> 
           <input id="avatar-1" name="profile_pic" type="file" value="" class="file-loading"> 
          </div> 
         </form> 
        </div> 
        <label>Username:</label> 
        <input type="text" name="username" value="" /> 
        <label>Email:</label> 
        <input type="text" name="email" value="" /> 
        <label>Password:</label> 
        <input type="password" name="password" value="" /> <br /><br /> 
        <input type="submit" class="btn btn-info" value="Register" /> 
       </form> 

解決此問題的最佳方法是什麼?

+4

'form'裏的'form'是一個無效的語法。 –

+0

u_mulder是對的。 'form'不允許嵌套。 –

+0

葉,反正不需要表格...複製粘貼錯誤!謝謝! – user3254780

回答

0

表單內的原因表單是無效的語法。 - u_mulder