josy Posted May 18, 2015 Report Share Posted May 18, 2015 (edited) <script type="text/javascript"> $(function(){ $("#send").click(function(e){ $("#form_login").submit(); }); $("#send2").click(function(e){ $("#form_psw").submit(); }); $.validator.messages.required = "<i> Campo obrigatório</i>"; $.validator.messages.email = "<i> E-mail inválido</i>"; $("#form_login").validate({ rules: { email: { required: true, email: true }, senha: "required", }, submitHandler: function(form){ var dados = $(form).serialize(); $.ajax({ type: "POST", url: "login.php", data: dados, success: function(data){ $('#form_login').submit(); } }); return false; } }); }); </script> <form name="form_login" id="form_login" action="login.php" method="post" style="width:500px; margin:222px auto 0 600px;"> <label class="overlabel">E-mail</label><br /><input name="email" id="email" type="text" class="textInput" style="width:200px" /><br /><br /> <label class="overlabel">Senha</label><br /><input name="senha" id="senha" type="password" class="textInput" style="width:200px" /><br /><br /> <input type="submit" value="Entrar" style="cursor:pointer" id="send" /> <a href="index.php?s=true">Esqueceu sua senha?</a> </form> Não chega na página login.php para averiguar se o login pode ocorrer. Peço auxílio. Att Edited May 18, 2015 by josy Quote Link to comment Share on other sites More sharing options...
Question
josy
Não chega na página login.php para averiguar se o login pode ocorrer.
Peço auxílio.
Att
Edited by josyLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.