Are you sure you have the form setup to do a post
? If it seems to be refreshing the page the form
tag may not be setup properly. Also the button to submit should be an input
tag of type submit
. The HTML would need to look something like this:
<form action="/contact" method="post">
<!-- your form elements go here -->
<input type="submit" value="Sign in">
</form>