Hi guys I would really appreciate your response on this question or point me to a solution if there exist one already.

I have a sign up form on my magento site that i need customers to use but apparently the form isn't getting submitted to the database.

after clicking the submit button i get redirected to the very same page and no user accounts are created. On the other hand the registration form works fine during checkout process and user accounts get created successfully.


enter image description here

  • Do you have form_key present on your form? May 16, 2018 at 12:42
  • as far as i can trace from my magento files in the server, the below code is what i have from the login.phtml from /app/design/frontend/neoshop/default/template/persistent/customer/form/login.phtml directory <form action="<?php echo $this->getPostActionUrl()?>" method="post" id="login-form"> <?php echo $this->getBlockHtml('formkey');?>............ May 16, 2018 at 13:29
  • is there a register.phtml in the same folder? does that have form_key also? May 16, 2018 at 13:38
  • no. the only file i have is the directory is login.phtml form May 16, 2018 at 13:41
  • can you update your Q with the contents of login.phtml? May 16, 2018 at 16:25

1 Answer 1


I know that you already inserted the form-key, but I had the same problem and I discovered that I was using the form-key in the wrong way/place.

1 -> Make sure that you use this code to insert the form-key:-

<?php echo $this->getBlockHtml('formkey'); ?>

2 -> The code should be right after the line:-

<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">

3 -> Make the changes in the right files in your Theme:-

  • thanks guys for the support, solution by @xMageStore sorted me out. Cheers May 17, 2018 at 7:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.