Sending messages fail when bulding a simle chat room
<p>I try the tutorial on net to build chat room.</p>

<p>First I create a database in MYSQL called chatroom and buld a datasheet called chat with three columns:chtime, nick, words.</p>

<p>Then I write four PHP files, login.php, main.php, display.php, speak.php but encounting problem about display and speak. My speak doesn't work and I just pop up a new window without any words.</p>

<p>I don't know where is the problem?</p>

<p>I have tried to fix it serveral days but in vain. Please tell me where is my error! Thx.</p>

<p>The following is my code:</p>

<p>Login.php
<a href="http://codepad.org/WIfr3quz" rel="nofollow">http://codepad.org/WIfr3quz</a></p>

<p>Main.php
<a href="http://codepad.org/b9pXuNl0" rel="nofollow">http://codepad.org/b9pXuNl0</a></p>

<p>Display.php
<a href="http://codepad.org/o7pf5G57" rel="nofollow">http://codepad.org/o7pf5G57</a></p>

<p>Speak.php
<a href="http://codepad.org/wFDEMrNk" rel="nofollow">http://codepad.org/wFDEMrNk</a></p>
