<?php
session_start();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Регистрация</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
<script>
$(function()
{
$("#result").hide();
$("#user").blur(function(){
$.post( "check/user.php",{
user : $("#user").val(),
},function(response){
$("#result1").fadeOut("slow");
$("#result1").html(response);
$("#result1").fadeIn("slow");
});
});
$("#pass").blur(function(){
$.post( "check/pass.php",{
pass : $("#pass").val(),
},function(response){
$("#result2").fadeOut("slow");
$("#result2").html(response);
$("#result2").fadeIn("slow");
});
});
$("#skype").blur(function(){
$.post( "check/skype.php",{
skype : $("#skype").val(),
},function(response){
$("#result3").fadeOut("slow");
$("#result3").html(response);
$("#result3").fadeIn("slow");
});
});
});
</script>
</head>
<body><br/>
<table style="margin:0 auto;" id="tablica">
<form action="register.php" method="post">
<tr><td>Потребителско име: </td><td><input type="text" name="user" id="user" size="36"/></td><td width="150"><span id="result1"></span></td></tr>
<tr><td>Парола: </td><td><input type="text" name="pass" id="pass" size="36"/></td><td width="150"><span id="result2"></span></td></tr>
<tr><td>Skype: </td><td><input type="text" name="skype" id="skype" size="36"/></td><td width="150"><span id="result3"></span></td></tr>
<tr><td></td><td><input type="submit" name="submit" value="Регистрация"/></td></tr>
</form>
</table>
</body>
</html>