Jump to content

Recommended Posts

Hi

 

I have this code

<?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()){
        sleep(2);
        $success="A mudança de password foi efetuadada...."; 
        $fgmembersite->RedirectToURL("index.php");

     }
     else{
        $success="A mudança de password não foi efetuadada....tente mais tarde"; 
     }
}
?>
<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>
                                    PAAD-Atividades</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 $fgmembersite->UserEmail(); ?>">
                        </div>
                        <br>
                        <input type="submit" id="sbmtLogin" class="sa-btn1" value="Mudar">
                    </form>
                </div>
                <div id="panel">
                <div id="success"></div>
                </div>
                <div><span class='error'><?php echo $fgmembersite->GetErrorMessage(); ?></span></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>

How to put a div where i can have the result of my function

Edited by gmc1103
Link to comment
https://forums.phpfreaks.com/topic/295194-how-to-check-result-into-a-div/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.