嗨,我是新來web開發。我有一個更改密碼錶單,我正在嘗試調用API,但在此之前似乎沒有提交任何數據。貝婁是用於檢查帖子的形式和檢查,但它沒有返回任何內容。表格不提交任何東西
<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';
?>
無需針對表單名稱..所有你需要的目標是按鈕的名稱... =) –