Server gets the parameters through post. Used csrf in html file. Merged ...

...two views into one.