<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Query7 &#187; ajax</title>
	<atom:link href="http://query7.com/category/ajax/feed" rel="self" type="application/rss+xml" />
	<link>http://query7.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 09 Apr 2010 09:36:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jQuery AJAX Tutorial Pt2</title>
		<link>http://query7.com/jquery-ajax-tutorial-pt2</link>
		<comments>http://query7.com/jquery-ajax-tutorial-pt2#comments</comments>
		<pubDate>Tue, 13 May 2008 04:35:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=50</guid>
		<description><![CDATA[<p>Heres Part 2 of the jQuery AJAX login tutorial. If you haven&#8217;t already, i suggest you read part 1 located <a href="http://www.query7.com/jquery-ajax-login-series-pt1/">here</a>.</p>
<p>We are going to start writing the PHP code to process the form. This is fairly basic stuff,&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Heres Part 2 of the jQuery AJAX login tutorial. If you haven&#8217;t already, i suggest you read part 1 located <a href="http://www.query7.com/jquery-ajax-login-series-pt1/">here</a>.</p>
<p>We are going to start writing the PHP code to process the form. This is fairly basic stuff, using <em>$_POST</em> to get the values from the form, then checking them against pre-assigned values, if they match, then echo approved, if they don&#8217;t then echo denied.</p>
<pre lang="php"><?php

if($_POST['submit']){

$username = $_POST['username'];
$password = $_POST['password'];

// Here you would put your validation, checking existing database records.

if($username == panzer &#038;&#038; $password == query7){

echo 'Logged in';

//Insert your cookie setting code here

} else {

echo 'Denied';

}

} else {

echo "Form not submitted";

}
?></pre>
<p>So at the end of this stage, you will have an HTML form set up and this PHP file. You can enter the username Panzer and the password of query7 into the form and it will return Logged in.</p>
<p>Next tutorial, the fun part, the AJAX!</p>
]]></content:encoded>
			<wfw:commentRss>http://query7.com/jquery-ajax-tutorial-pt2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery AJAX Login Series Pt1</title>
		<link>http://query7.com/jquery-ajax-login-series-pt1</link>
		<comments>http://query7.com/jquery-ajax-login-series-pt1#comments</comments>
		<pubDate>Sat, 10 May 2008 14:10:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=49</guid>
		<description><![CDATA[<p>Heyo. This is going to be the first of 4 tutorials on making a jQuery powered AJAX login system with a PHP backend. The series of tutorials will go like so.</p>
<ol>
<li> Plan, code the form (This tutorial)</li>
<li>Code</li></ol><p>&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Heyo. This is going to be the first of 4 tutorials on making a jQuery powered AJAX login system with a PHP backend. The series of tutorials will go like so.</p>
<ol>
<li> Plan, code the form (This tutorial)</li>
<li>Code the PHP backend, make it work</li>
<li>Code the AJAX, implement it.</li>
<li>Tidy it up, make it look snazzy</li>
</ol>
<p>Ok then. So we will have a forum with 2 inputs; username and password. The user will enter the details and we&#8217;ll use PHP to authenticate them. If its true, we can set a cookie or echo some text. We will then implement jQuery&#8217;s AJAX and make the whole thing seemless. Some nice little fades will be added at the end.</p>
<p>So, the form. Its a plain and simple HTML form. Nothing special about it.</p>
<pre lang="html">
<form method="post">

<b>Username:</b>
<input type="text" name="username">
<b>Password:</b>
<input type="password" name="password">
<input type="submit" name="login" value="Login">
</form>
</pre>
<p>Thats all for now. Next lesson we will code the PHP and &#8220;<em>make it work</em>&#8220;.</p>
]]></content:encoded>
			<wfw:commentRss>http://query7.com/jquery-ajax-login-series-pt1/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>AJAX Series Coming Soon!</title>
		<link>http://query7.com/ajax-series-coming-soon</link>
		<comments>http://query7.com/ajax-series-coming-soon#comments</comments>
		<pubDate>Fri, 09 May 2008 03:50:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=48</guid>
		<description><![CDATA[<p>Hey guys, just thought i&#8217;d post a little interim post (as such). Im in the process of making a 4 part tutorial series on using jQuery&#8217;s AJAX. Its a &#8220;case study&#8221; where i/we will make a basic login form with&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Hey guys, just thought i&#8217;d post a little interim post (as such). Im in the process of making a 4 part tutorial series on using jQuery&#8217;s AJAX. Its a &#8220;case study&#8221; where i/we will make a basic login form with a PHP backend and then use jQuery to make the login seemless. Eg. you put your username/password in the form and click the login button the page doesn&#8217;t reload but it will tell you whether its the correct user/pass , in which case a cookie is set, or if its bad info.</p>
<p>It might take a little while to finish up so i might not be posting much over the next week (sorry) but it will be worth it in the end.</p>
]]></content:encoded>
			<wfw:commentRss>http://query7.com/ajax-series-coming-soon/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
