<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6235931032296578628</id><updated>2011-07-08T05:51:09.739-07:00</updated><category term='webdevelopment'/><category term='php'/><title type='text'>Techie geek</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://thetechiegeek.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6235931032296578628/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://thetechiegeek.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Prakash Philip Zacharia</name><uri>http://www.blogger.com/profile/17694994050498470152</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_sSJ1_OpgcSU/SaUjbsf8iXI/AAAAAAAAAHA/-mmszDmyzJk/S220/31-10-08_1551.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6235931032296578628.post-2527814267673154025</id><published>2009-08-24T09:18:00.000-07:00</published><updated>2009-08-25T09:16:54.623-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='webdevelopment'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Simple login using php (part 1)</title><content type='html'>Hey today i am going to explain a simple login using php session.&lt;div&gt;In this first post i will be discussing about simply writing user infromation into a database.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Create a Mysql table which will contain all the login information of the user.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;table style="text-align: center;" border="3"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th style="text-align: center;"&gt;Coloum&lt;/th&gt;&lt;th style="text-align: center;"&gt;data type&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;userid&lt;/td&gt;&lt;td style="text-align: center;"&gt;varchar(12)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;password&lt;/td&gt;&lt;td style="text-align: center;"&gt;varchar(12)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;email&lt;/td&gt;&lt;td style="text-align: center;"&gt;varchar(12)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;step2: Create form for the users to register.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&amp;lt;form action="insert.php" method="post"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Username : &amp;lt;input type="text" name="userid" &amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Password : &amp;lt;input type="password" name="password" &amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;E-mail: &amp;lt;input type="text" name="email" &amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;input type="submit" value="submit" name="submit"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;when user submit's this form it will go to insert.php&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;insert.php&lt;/b&gt;&lt;/div&gt;&lt;div&gt;this php code will insert value into the databse. &lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&amp;lt;?php&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$conn = mysql_connect("localhost","Database username","database password");&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//let us assume a database named login&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$db = mysql_select_db("login");&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;// the values entered in the form are stored in  variables&lt;/div&gt;&lt;div&gt;$userid = $_POST["userid"];&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$password = $_POST["password"];&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$email = $_POST["email"];&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$result = mysql_query("insert into users(userid,password,email)"."values('$userid','$password','$email')");&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;echo "thanks for registering your account with us";&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;?&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Now the details of user is added into the database.&lt;/div&gt;&lt;div&gt;Please check out the next post to see the main part of login using session.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6235931032296578628-2527814267673154025?l=thetechiegeek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thetechiegeek.blogspot.com/feeds/2527814267673154025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thetechiegeek.blogspot.com/2009/08/hello-this-first-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6235931032296578628/posts/default/2527814267673154025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6235931032296578628/posts/default/2527814267673154025'/><link rel='alternate' type='text/html' href='http://thetechiegeek.blogspot.com/2009/08/hello-this-first-post.html' title='Simple login using php (part 1)'/><author><name>Prakash Philip Zacharia</name><uri>http://www.blogger.com/profile/17694994050498470152</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_sSJ1_OpgcSU/SaUjbsf8iXI/AAAAAAAAAHA/-mmszDmyzJk/S220/31-10-08_1551.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6235931032296578628.post-1700777695497435782</id><published>2009-08-24T09:17:00.000-07:00</published><updated>2009-08-24T11:23:14.577-07:00</updated><title type='text'>Simple login using php (part 2)</title><content type='html'>&lt;div&gt;First i will make a login form.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&amp;lt;form method="POST" action="login.php"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Username: &amp;lt;input type="text" name="userid" &amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Password: &amp;lt;input type="password" name="password" &amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;input type="submit" value="login" name="login"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now lets have a look at login.php&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&amp;lt;?PHP&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//isset function checks for exsistence of the variable if isset returns false then it redirects to login page&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if (!isset($userid) || !isset($password)) {&lt;br /&gt;&lt;/div&gt;&lt;div&gt;header( "Location: http" address of your login page  " );&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//here it checks if forms fields are submitted empty or not&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//if empty it redirects to login page&lt;/div&gt;&lt;div&gt;elseif (empty($userid) || empty($password)) {&lt;br /&gt;&lt;/div&gt;&lt;div&gt;header( Location:"address of login page" );&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;br /&gt;&lt;/div&gt;&lt;div&gt;else{&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//addslashes() function is used to escape double quotes ("), single quotes ('), backslash (\) or NULL.It does so by automatically inserting a backslash (\) character in front of the characters in a string.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//addslashes() function is especially useful to use on a string before inserting into a database&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$user = addslashes($_POST['userid']);&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$pass = $_POST['password'];&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//Store the form value into php variables&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$dbHost = "localhost";&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$dbUser = "Database userid";&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$dbPass = "Database password ";&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//as assumed earlies we have a login database&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$dbDatabase = "login";&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//conneting to the database&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$db = mysql_connect("$dbHost", "$dbUser", "$dbPass") or die ("Error while connecting to database.");&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;mysql_select_db("$dbDatabase", $db) or die ("Couldn't select the database.");&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$result=mysql_query("select * from users where username='$userid' AND password='$password'", $db);&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//checks if result is not empty&lt;/div&gt;&lt;div&gt;$row = mysql_num_rows($result);&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if($row &amp;gt; 0)&lt;br /&gt;&lt;/div&gt;&lt;div&gt;{&lt;br /&gt;&lt;/div&gt;&lt;div&gt;while($row = mysql_fetch_array($result))&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;{&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//A session is started and variable registered&lt;/div&gt;&lt;div&gt;  session_start();&lt;/div&gt;&lt;div&gt;&lt;span class="txtplain1"&gt;&lt;span class="bodyCode"&gt; session_register('userid'); &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;//the session variable userid is used through out the users session &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  echo 'Successful login !';&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  //redirect to a page&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//let check.php be the page where you want to redirect&lt;/div&gt;&lt;div&gt;  header( "Location: http:"check.php");&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  }&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  }&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  else {&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  echo 'There was an error logging in please try again.';&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  }&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  ?&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;Please check the next post where i will discuss about  how to check if user is logged in.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6235931032296578628-1700777695497435782?l=thetechiegeek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thetechiegeek.blogspot.com/feeds/1700777695497435782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thetechiegeek.blogspot.com/2009/08/simple-login-using-php-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6235931032296578628/posts/default/1700777695497435782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6235931032296578628/posts/default/1700777695497435782'/><link rel='alternate' type='text/html' href='http://thetechiegeek.blogspot.com/2009/08/simple-login-using-php-part-2.html' title='Simple login using php (part 2)'/><author><name>Prakash Philip Zacharia</name><uri>http://www.blogger.com/profile/17694994050498470152</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_sSJ1_OpgcSU/SaUjbsf8iXI/AAAAAAAAAHA/-mmszDmyzJk/S220/31-10-08_1551.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6235931032296578628.post-3663764804194590601</id><published>2009-08-24T09:15:00.000-07:00</published><updated>2009-08-24T10:55:07.113-07:00</updated><title type='text'>Simple login using php (part 3)</title><content type='html'>Here i am going to discuss about the check.php.&lt;div&gt;This php page will check if the user is logged in or not . If not it will redirect the user to login page.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&amp;lt;?php&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//session starts here&lt;br /&gt;&lt;/div&gt;&lt;div&gt;session_start();&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//check if session is registered&lt;/div&gt;&lt;div&gt;if(session_is_registered('userid'))&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;{&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//if registered display the content you would like to show&lt;/div&gt;&lt;div&gt;echo 'Hello you are logged in.';&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;else{&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//if session variable is not registere send back user to login page&lt;br /&gt;&lt;/div&gt;&lt;div&gt;header( "Location: http://login.html" );&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;?&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6235931032296578628-3663764804194590601?l=thetechiegeek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thetechiegeek.blogspot.com/feeds/3663764804194590601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thetechiegeek.blogspot.com/2009/08/simple-login-using-php-part-3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6235931032296578628/posts/default/3663764804194590601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6235931032296578628/posts/default/3663764804194590601'/><link rel='alternate' type='text/html' href='http://thetechiegeek.blogspot.com/2009/08/simple-login-using-php-part-3.html' title='Simple login using php (part 3)'/><author><name>Prakash Philip Zacharia</name><uri>http://www.blogger.com/profile/17694994050498470152</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_sSJ1_OpgcSU/SaUjbsf8iXI/AAAAAAAAAHA/-mmszDmyzJk/S220/31-10-08_1551.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6235931032296578628.post-5329943207242102541</id><published>2009-08-24T09:14:00.000-07:00</published><updated>2009-08-24T10:47:23.465-07:00</updated><title type='text'>Simple login using php (part 4)</title><content type='html'>&lt;div&gt;Here i will explain about logging out of the session.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;?php&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//session starts here&lt;br /&gt;&lt;/div&gt;&lt;div&gt;session_start();&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//makes sure userid is registered&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if(session_is_registered('userid')){&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//if session is registered only then user can log out&lt;br /&gt;&lt;/div&gt;&lt;div&gt;session_unset();&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;br /&gt;&lt;/div&gt;&lt;div&gt;session_destroy();&lt;br /&gt;&lt;/div&gt;&lt;div&gt;else{&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//if user is not registered then the logout should not work and redirect user to login page&lt;br /&gt;&lt;/div&gt;&lt;div&gt;header( "Location: http://login.html" );&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;br /&gt;&lt;/div&gt;&lt;div&gt;?&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6235931032296578628-5329943207242102541?l=thetechiegeek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thetechiegeek.blogspot.com/feeds/5329943207242102541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thetechiegeek.blogspot.com/2009/08/simple-login-using-php-part-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6235931032296578628/posts/default/5329943207242102541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6235931032296578628/posts/default/5329943207242102541'/><link rel='alternate' type='text/html' href='http://thetechiegeek.blogspot.com/2009/08/simple-login-using-php-part-4.html' title='Simple login using php (part 4)'/><author><name>Prakash Philip Zacharia</name><uri>http://www.blogger.com/profile/17694994050498470152</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_sSJ1_OpgcSU/SaUjbsf8iXI/AAAAAAAAAHA/-mmszDmyzJk/S220/31-10-08_1551.jpg'/></author><thr:total>0</thr:total></entry></feed>
