Hello
Does anyone know where I can get a good tutorial on how to build a php ajax / jquery login / registration system ?
JQuery / Ajax
-
- Posts: 479
- Joined: Tue May 16, 2006 11:53 am
No Problem. There are many resources out there but i find these to be the
most informative
::AJAX::
http://www.w3schools.com/ajax/default.asp
::JQUERY::
http://www.w3schools.com/jquery/default.asp
Ive read those alwready but I was looking for more specific tutorials related to login to see what kind of methods people use. By methods i mean more specifically related to the Ajax, jquery part not the php part.Freedom Fighter wrote:
No Problem. There are many resources out there but i find these to be the
most informative
::AJAX::
http://www.w3schools.com/ajax/default.asp
::JQUERY::
http://www.w3schools.com/jquery/default.asp
How to get the data from the forms*
How to send the data from the forms to the php file and how to receive a response
.............................:: Spirit of Fire ::..................................
-
- Posts: 479
- Joined: Tue May 16, 2006 11:53 am
jquery
Thanks, I found a nice tutorial which showed me how to use $.post() and $.get() jquery functions which helped me out a lot. Jquery is really neat!
.............................:: Spirit of Fire ::..................................
-
- Posts: 479
- Joined: Tue May 16, 2006 11:53 am
Ajax
You should, its really really simple, I mean for a login you would just do
Index.html
<script - >
$(****).ready(function() {
$.post("login.pgp",{Username: $("#username").val(), Password: $("#password").val(),function(data) {
if(data == "Success") $("body").append("You have loagged in"); $("#loginform").css("display","none");
// Dosplay the login class (Default - Hidden)
$(".loginpage").css("display","block");
// Load the members page data
$(".loginpage").load("loginpage.php");
});
</script - >
Login.php
if($_POST['']) {
// Proceeed with regular php scripting
echo 'Success';
}
Thats just a messy example but its as simple as that! Jquery for the Win! Check it out, Im sure you will find something neat for your website!
Index.html
<script - >
$(****).ready(function() {
$.post("login.pgp",{Username: $("#username").val(), Password: $("#password").val(),function(data) {
if(data == "Success") $("body").append("You have loagged in"); $("#loginform").css("display","none");
// Dosplay the login class (Default - Hidden)
$(".loginpage").css("display","block");
// Load the members page data
$(".loginpage").load("loginpage.php");
});
</script - >
Login.php
if($_POST['']) {
// Proceeed with regular php scripting
echo 'Success';
}
Thats just a messy example but its as simple as that! Jquery for the Win! Check it out, Im sure you will find something neat for your website!
.............................:: Spirit of Fire ::..................................