I suggest you to also post the
error messages if there's any.. and I think there is for this one so that it's easier for us to look for the problems...
I'd say that the first line of code:
As far that I know
$_POST is supposed to be
$_POST['variable']
In addition, please read:
Markup For Easy Reading