Based on the paste in http://pastebin.com/0whCYxuE
To fix your issue:
Add the following as current line 30
echo '</form>';
And follow up suggestion is to remove line 28 and just utilize $_SESSION['user']
2
solved Cannot POST all form fields [closed]