php - Are there any way to open a form in a div? -
i have this:
my web has 4 divs, first 1 container , inside 3 divs:
- nav
- content
- footer
i mix web moodle, when put correct login , password, says me hello , name in nav, when put wrong login or password, redirects me new page.
i need that,when put wrong login or password, load page inside content's div.
have use ajaxform? how? there more way this?
i have code form:
<?php if(empty($user->id)) { ?><div id="login"> <form method="post" action="<?php echo $cfg->httpswwwroot;?>/login/index2.php"> <fieldset> <label for="username">usuario:</label><input type="text" name="username" id="usuario"> <label for="password">password:</label><input type="password" name="password" id="password"> <br> <input type="submit" value="entrar" /> </fieldset> </form></div> <a id="boton4">olvido</a> <?php } else { echo 'hola '.$user->firstname.'(<a href="'.$cfg->wwwroot.'/login/logout.php">salir</a>)'; } ?>
thank answer!
Comments
Post a Comment