<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1035423" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1035423</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/does-php-script-look-ok#comment-1204896</link>
    <description> &lt;p&gt;The problem is most likely that you are never initializing the session with the &lt;strong&gt;sesion_start()&lt;/strong&gt; function. (see &lt;a href=&quot;http://us3.php.net/manual/en/function.session-start.php&quot; class=&quot;bb-url&quot;&gt;http://us3.php.net/manual/en/function.session-start.php&lt;/a&gt;) You need to do this on any page using the sessions, and it must be called BEFORE anything is sent ot the browser (ie. through echo, print, or before any &amp;lt;? ?&amp;gt; tags).&lt;/p&gt;
&lt;p&gt;Just a few notes on your code as changes I would recommend:&lt;/p&gt;
&lt;p&gt;Instead of &lt;strong&gt;&amp;lt;?PHP print $msg; ?&amp;gt;&lt;/strong&gt;, you can simply do &lt;strong&gt;&amp;lt;?= $msg ?&amp;gt;&lt;/strong&gt; or &lt;strong&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$msg &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It is best not to store the plain password in the database, you should save a hashed version (ie, use md5() function) and check that. &lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Jul 2006 19:02:31 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1204896 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
