Shut off javascript in your browser and test it - see what happens.
I think the problem is that
should be
, and similar changes should be made for the other fields.
The
{$_POST['name']} notation may not be working either. You might want to try it without the
{}.