Div不显示来自echo php

时间:2015-06-16 12:47:15

标签: php

我在使用此代码时遇到了另一个问题。我尝试了不同的方法但没有成功。

=GetElementByRegex(A2;"<h1 id=""HEADING"".*?>(?:(?:.|\n)*?)</div>((?:.|\n)*?)</h1>")

在调试器中,我得到if (isset($_POST['submitted'])) { if($fgmembersite->ChangePassword()){ echo '<div id="ajaxDivOk">Password alterada com sucesso</div>'; sleep(2); $fgmembersite->RedirectToURL("index.php"); } echo '<div id="ajaxDivErro">A mudança de password não foi efetuadada....tente mais tarde</div>'; sleep(2); } ...但不在主页面中。

这是我的主页:

echo

该函数正在运行,因为我在调试器中收到句子

<?PHP
error_reporting(E_ALL | E_NOTICE);
ini_set('display_errors', '1');
require_once("./include/membersite_config.php");
if (!$fgmembersite->CheckLogin()) {
    $fgmembersite->RedirectToURL("index.php");
    exit;
}

if (isset($_POST['submitted'])) {
     if($fgmembersite->ChangePassword()){
        echo '<div id="ajaxDivOk">Password alterada com sucesso</div>'; 
        sleep(2);
        $fgmembersite->RedirectToURL("index.php");
     }
     echo '<div id="ajaxDivErro">A mudança de password não foi efetuadada....tente mais tarde</div>';
     sleep(2);
}

$email = $fgmembersite->UserEmail();
?>
<html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>EBSPMA Atividades</title>
        <link href="css/styles.css" rel="stylesheet">
        <link href="css/bootstrap.min.css" rel="stylesheet">
        <script src="js/modernizr.js?cb=2.2.3.2085"></script>
        <script type="text/javascript">
        </script>
    </head>
    <body>
        <header role="banner" class="main-header">
            <!-- MAIN HEADER -->
            <div class="main-header-body">
                <div class="container-wrapper">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-xs-3">
                                <h2>EBSPMA PAAD</h2>
                            </div>
                            <div class="col-xs-4 col-xs-offset-1 main-header-title">
                                <p class="sizeToggle" >Mudar Password</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </header><section class="content">
            <div class="grid">
                <div class="box">
                    <form name="changepwd" id="loginForm" action='<?php echo $fgmembersite->GetSelfScript(); ?>' method="POST">
                        <input type="hidden" name='submitted' id='submitted'/>
                        <input type="hidden" name="path" value="painelAdquirente.action"/>
                        <div>
                            <p><b><font color="red">A sua password deve ser alterada!</font></b></p></div>
                        <div class="icon-input">
                            <label for="password"></label>
                            <div class="input password">
                                <i class="fa fa-lock"></i>
                                <input type="password" name="oldpwd" id="oldpwd" placeholder="Senha antiga">
                            </div>
                        </div>
                        <br>
                        <div class="icon-input">
                            <label for="password"></label>
                            <div class="input password">
                                <i class="fa fa-lock"></i>
                                <input type="password" name="newpwd" id="newpwd" placeholder="Senha nova">
                            </div>
                            <input type="hidden" name="email" id="email" value="<?php echo $email; ?>">
                        </div>
                        <br>
                        <input type="submit" id="sbmtLogin" class="sa-btn1" value="Mudar">
                    </form>
                </div>
                <div class="form-group">     
                    <div id="ajaxDivOk" style="display:none" class="alert alert-success">Aqui</div> 
                </div>
                <div class="form-group">
                  <div id="ajaxDivErro"  style="display:none" class="alert alert-danger"></div>
                </div>
            </div>
        </section>
        <script src="js/jquery-1.11.1.min.js"></script>
        <script src="js/jquery.validate.min.js"></script>
        <script src="js/plugins.js?cb=2.2.3.2085"></script>
    </body>
</html>

那有什么不对?

更新:

我还有问题:现在我有这个错误:

  

未捕获的ReferenceError:未定义checkMudaPass

功能是:

<div class="alert alert-success">Verifique o seu mail....Obrigado</div>

0 个答案:

没有答案