Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Renato Menezes Portugal  >  Verify User  >  index.php  >  Download  
File: index.php
Role: Auxiliary data
Content type: text/plain
Description: Principal File
Class: Verify User
Validate user with a record in a MySQL table
Author: By
Last change: Icon loader.
Date: 2 years ago
Size: 1,209 bytes
 

Contents

Class file image Download
<html>
<head>

<script type = "text/javascript" src="jquery.js" language="javascript"></script>
<script language="javascript">
$(document).ready(function()
  {
  $('#retorno_campo1').load('verifica_campo1.php').show();
  $('#entrada_campo1').keyup(function()
    {
    $.post('verifica_campo1.php', { username: form.username.value },
	function(result)
      {
      $('#retorno_campo1').html(result).show();
	  });
	});
	
  $('#retorno_campo2').load('verifica_campo2.php').show();
  $('#entrada_campo2').keyup(function()
    {
    $.post('verifica_campo2.php', { username2: form.username2.value },
	function(result)
      {
      $('#retorno_campo2').html(result).show();
	  });
	});
	
	
  });

</script>
</head>

<body>

<form name="form">
<table>

<tr>
<td>	Username: <br />
<td>	<input type="text" id="entrada_campo1" name="username">
<div><td id="retorno_campo1"><img src='newloader.gif'></td></div>
</tr>

<tr>
<td>	Username2: <br />
<td>	<input type="text" id="entrada_campo2" name="username2">
<div><td id="retorno_campo2"><img src='newloader.gif'></td></div>
</tr>

</table>
</form>


<!-- <div id="feedback"> In here</div> -->

</body>
</html>