我的代碼是一個簡單的HTML表單,帶有一個用於edit password
的按鈕。我試圖讓它在PHP中工作,但是在將facebook.com作爲一個動作輸入後,它什麼也不做。爲什麼提交按鈕不起作用?
下面是代碼:
<form name="sentMessage" id="contactForm" action="https://www.facebook.com" method="POST">
<div class="row control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
<label>Current Password</label>
<input type="password" class="form-control" placeholder="Current Password" name="Current Password" id="name" required data-validation-required-message="Please enter your current password." >
<p class="help-block text-danger"></p>
</div>
</div>
<div class="row control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
<label>Password</label>
<input type="password" class="form-control" placeholder="New Password" name="New Password" id="name" required data-validation-required-message="Please enter your new password." >
<p class="help-block text-danger"></p>
</div>
</div>
<div class="row control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
<label>Re-enter Password</label>
<input type="password" class="form-control" placeholder="Re-enter Password" name="Re-enter Password" id="name"required data-validation-required-message="Please re-enter your password." >
<p class="help-block text-danger"></p>
</div>
</div>
<br>
<div id="success"></div>
<button class="btn btn-success btn-lg" data-toggle="modal" style="padding:10px 20px;width:100px;" type="submit">Edit</button>
<button type="button" class="btn btn-default btn-lg" data-dismiss="modal" style="padding:10px 20px;width:100px;"><i class="fa fa-times"></i> Close</button>
</form>
URL處於'action'期望交叉源'POST'? – guest271314