dongshi7350 2016-12-31 08:10
浏览 9

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

i am trying to call a page div from another php page.i call it using (found on net) admin.php#changepass

like----my html code

<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>

and my php code from where i call it

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

but it not working for me.it just show admin.php page can anybody help me.

  • 写回答

1条回答 默认 最新

  • dongxie3681 2016-12-31 08:12
    关注
    <div id="changepass" class="w3-container city" style="display:none">
    
    remove style="display:none" 
    
    评论

报告相同问题?

悬赏问题

  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探