Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.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
Php 表格不提交任何内容_Php_Html_Forms - Fatal编程技术网

Php 表格不提交任何内容

Php 表格不提交任何内容,php,html,forms,Php,Html,Forms,嗨,我是网络开发新手。我有一个更改密码表单,我试图调用API,但在此之前,表单似乎没有提交任何数据。Bellow是用于检查邮件的表单和支票,但它没有返回任何内容 <form name="passwordForm" method="post"> <div class="password-form"> <label>New Password:<span class="small-label"> Please enter at least 8

嗨,我是网络开发新手。我有一个更改密码表单,我试图调用API,但在此之前,表单似乎没有提交任何数据。Bellow是用于检查邮件的表单和支票,但它没有返回任何内容

<form name="passwordForm" method="post">
<div class="password-form">
     <label>New Password:<span class="small-label"> Please enter at least 8 alphanumeric characters</span></label><input class="changepwd" type="password" name="newPassword1" required=""
      id="newPassword1" placeholder="Password"> <br>
<label>Re-type Password:</label><input class="retypepwd " type="password" name="newPassword2" required="" id="newPassword2" placeholder="Password">

     <button type="submit" value="Change Password" id="changePassword" class="buttonlink">Change
      Password</button>
    </form></div>

<?php 
if(isset($_POST['passwordForm'])){
       echo 'test';
?>

新密码:请输入至少8个字母数字字符
重新键入密码: 改变 密码
试试这个

    <form  method="post">
    <div class="password-form">
         <label>New Password:<span class="small-label"> Please enter at least 8 alphanumeric characters</span></label><input class="changepwd" type="password" name="newPassword1" required=""
          id="newPassword1" placeholder="Password"> <br>
    <label>Re-type Password:</label><input class="retypepwd " type="password" name="newPassword2" required="" id="newPassword2" placeholder="Password">

         <button type="submit" name="passwordForm" value="Change Password" id="changePassword" class="buttonlink">Change
          Password</button>
        </form></div>

    <?php 
    if(isset($_POST['passwordForm'])){
           echo 'test';
}
    ?>

新密码:请输入至少8个字母数字字符
重新键入密码: 改变 密码
试试这个

<form name="passwordForm" method="post">
<div class="password-form">
 <label>New Password:<span class="small-label"> Please enter at least 8 alphanumeric characters</span></label><input class="changepwd" type="password" name="newPassword1" required="" id="newPassword1" placeholder="Password"> <br>
 <label>Re-type Password:</label><input class="retypepwd " type="password" name="newPassword2" required="" id="newPassword2" placeholder="Password">

 <button type="submit" name="cmd_submit" value="Change Password" id="changePassword" class="buttonlink">Change
  Password</button>
</form></div>



<?php 
if(isset($_POST['cmd_submit'])){
   echo 'test';
 }
?>

新密码:请输入至少8个字母数字字符
重新键入密码: 改变 密码
试试这个

<div class="password-form">
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
     <label>New Password:<span class="small-label"> Please enter at least 8    alphanumeric characters</span></label>
     <input class="changepwd" type="password" name="newPassword1" required="" id="newPassword1" placeholder="Password"> <br>
     <label>Re-type Password:</label>
     <input class="retypepwd " type="password" name="newPassword2" required="" id="newPassword2" placeholder="Password">

     <button type="submit" name="passwordForm" value="Change Password" id="changePassword" class="buttonlink">Change Password</button>
</form>
</div>

<?php 
if(isset($_POST['passwordForm'])){
       echo 'test';
}
?>


无需以表单名称为目标。。您所需要的目标是按钮的名称…=)