Jump to content
Fórum Script Brasil
  • 0

Validação de usuário e senha com jquery - não dá o submit do formulári



<script type="text/javascript">            

				$.validator.messages.required = "<i> Campo obrigat&oacute;rio</i>";
				$.validator.messages.email = "<i> E-mail inv&aacute;lido</i>";
					rules: {
						email: {
							required: true,
							email: true
						senha: "required",
					submitHandler: function(form){
						var dados = $(form).serialize();
							type: "POST",
							url: "login.php",
							data: dados,
							success: function(data){
						return false;

<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" />
			  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="index.php?s=true">Esqueceu sua senha?</a>

Não chega na página login.php para averiguar se o login pode ocorrer.

Peço auxílio.


Edited by josy
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

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

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...