<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PHP Login Script 2</title>
	<atom:link href="http://secureslash.com/php-scripting/php-login-script-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://secureslash.com/php-scripting/php-login-script-2/</link>
	<description>Because security matters</description>
	<lastBuildDate>Fri, 11 May 2012 19:08:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: jegan</title>
		<link>http://secureslash.com/php-scripting/php-login-script-2/comment-page-1/#comment-208</link>
		<dc:creator>jegan</dc:creator>
		<pubDate>Wed, 15 Aug 2007 13:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://secureslash.com/php-scripting/php-login-script-2/#comment-208</guid>
		<description>thanks friend i works thanks for reply</description>
		<content:encoded><![CDATA[<p>thanks friend i works thanks for reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthi Keyan</title>
		<link>http://secureslash.com/php-scripting/php-login-script-2/comment-page-1/#comment-207</link>
		<dc:creator>Karthi Keyan</dc:creator>
		<pubDate>Wed, 15 Aug 2007 13:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://secureslash.com/php-scripting/php-login-script-2/#comment-207</guid>
		<description>try to put ob_start(); on second line &amp; ob_end_flush(); on last line..</description>
		<content:encoded><![CDATA[<p>try to put ob_start(); on second line &#038; ob_end_flush(); on last line..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthi Keyan</title>
		<link>http://secureslash.com/php-scripting/php-login-script-2/comment-page-1/#comment-206</link>
		<dc:creator>Karthi Keyan</dc:creator>
		<pubDate>Wed, 15 Aug 2007 13:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://secureslash.com/php-scripting/php-login-script-2/#comment-206</guid>
		<description>ok first of all.. how about &quot;?&quot; symbol on line 3 ?</description>
		<content:encoded><![CDATA[<p>ok first of all.. how about &#8220;?&#8221; symbol on line 3 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jegan</title>
		<link>http://secureslash.com/php-scripting/php-login-script-2/comment-page-1/#comment-205</link>
		<dc:creator>jegan</dc:creator>
		<pubDate>Wed, 15 Aug 2007 13:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://secureslash.com/php-scripting/php-login-script-2/#comment-205</guid>
		<description>&lt;?php
session_start();
?
include(&quot;dbconnect.php&quot;);
	if (isset($_POST[&#039;submit&#039;]))
	{
		$username=$_POST[&#039;usname&#039;];
		$password=$_POST[&#039;pass&#039;];
		$query = &quot;SELECT * FROM members WHERE username=&#039;&quot;.$username.&quot;&#039;&quot;;
		$result = mysql_query($query);
		$row = mysql_fetch_array($result,MYSQL_ASSOC);
		       if ($password == $row[&#039;password&#039;])
		             {
		                  $Login=TRUE;
						  $_SESSION[&#039;login&#039;] = TRUE;
		   		          $_SESSION[&#039;username&#039;]=$username;
				          $_SESSION[&#039;password&#039;]=$password;
						  }
	             else
		             {
		                  $loginfailed =TRUE;
		              }
			include(&quot;dbclose.php&quot;);
	  }
	  if($_SESSION[&#039;login&#039;])
	  {header(&#039;Location:index2.php&#039;);}
			?&gt;


the header function is the 100 th line
i used $_SERVER[&#039;PHP_SELF&#039;] 
thanks for the comment</description>
		<content:encoded><![CDATA[<p>< ?php<br />
session_start();<br />
?<br />
include("dbconnect.php");<br />
	if (isset($_POST['submit']))<br />
	{<br />
		$username=$_POST['usname'];<br />
		$password=$_POST['pass'];<br />
		$query = "SELECT * FROM members WHERE username='".$username."'";<br />
		$result = mysql_query($query);<br />
		$row = mysql_fetch_array($result,MYSQL_ASSOC);<br />
		       if ($password == $row['password'])<br />
		             {<br />
		                  $Login=TRUE;<br />
						  $_SESSION['login'] = TRUE;<br />
		   		          $_SESSION['username']=$username;<br />
				          $_SESSION['password']=$password;<br />
						  }<br />
	             else<br />
		             {<br />
		                  $loginfailed =TRUE;<br />
		              }<br />
			include("dbclose.php");<br />
	  }<br />
	  if($_SESSION['login'])<br />
	  {header('Location:index2.php');}<br />
			?></p>
<p>the header function is the 100 th line<br />
i used $_SERVER['PHP_SELF']<br />
thanks for the comment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthi Keyan</title>
		<link>http://secureslash.com/php-scripting/php-login-script-2/comment-page-1/#comment-204</link>
		<dc:creator>Karthi Keyan</dc:creator>
		<pubDate>Wed, 15 Aug 2007 13:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://secureslash.com/php-scripting/php-login-script-2/#comment-204</guid>
		<description>Hello,
      Can you please post the 14th &amp; 100th lines of index1.php ? and 1 to 3rd lines?</description>
		<content:encoded><![CDATA[<p>Hello,<br />
      Can you please post the 14th &#038; 100th lines of index1.php ? and 1 to 3rd lines?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jegan</title>
		<link>http://secureslash.com/php-scripting/php-login-script-2/comment-page-1/#comment-203</link>
		<dc:creator>jegan</dc:creator>
		<pubDate>Wed, 15 Aug 2007 12:57:38 +0000</pubDate>
		<guid isPermaLink="false">http://secureslash.com/php-scripting/php-login-script-2/#comment-203</guid>
		<description>hi can any one solve me a problem . i got a warning while  i using header 

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\index1.php:14) in C:\wamp\www\index1.php on line 100</description>
		<content:encoded><![CDATA[<p>hi can any one solve me a problem . i got a warning while  i using header </p>
<p>Warning: Cannot modify header information &#8211; headers already sent by (output started at C:\wamp\www\index1.php:14) in C:\wamp\www\index1.php on line 100</p>
]]></content:encoded>
	</item>
</channel>
</rss>

