Fixed variable typo
Fixed typo & open php tag
Fixed most of form