如何从另一个php页面调用div链接?

时间:2016-12-31 08:10:43

标签: javascript php jquery html css

我试图从另一个php page.i调用它来调用它(在网上找到)admin.php #changepass

喜欢----我的HTML代码

<div id="changepass" class="w3-container city" style="display:none">
  <form name="changespass" class="w3-container" method="post" action="changepass.php">
   <h2 class="w3-text-blue">Change password</h2>
   <p>      
   <label class="w3-text-blue"><b>Current Password</b></label>
   <input required autocomplete="off" name="currpass" class="w3-input w3-border w3-animate-input" type="password" style="width:30%">
    <p>      
   <label class="w3-text-blue"><b>New Password</b></label>
   <input required autocomplete="off" name="npass" class="w3-input w3-border w3-animate-input" type="password" style="width:30%">
    <p>    
    <p>      
   <label class="w3-text-blue"><b>Confirm Password</b></label>
   <input required  autocomplete="off" name="cpass" class="w3-input w3-border w3-animate-input" type="password" style="width:30%">
   <p>
   <button name="submitx" onclick="checkx()" class="w3-btn w3-cyan w3-border w3-border-red w3-round-xlarge">Submit</button>
</form>

和我称之为的PHP代码

                echo "<script>
                alert('vendors successfully added.');
                window.location.href='admin.php#changepass';
                </script>";

但它不适用于我。只需显示admin.php页面 任何人都可以帮助我。

1 个答案:

答案 0 :(得分:0)

<div id="changepass" class="w3-container city" style="display:none">

remove style="display:none"