Sorry I once posted on the wrong issue, here http://drupal.org/comment/edit/979466.

I have a problem when trying to merge user registration form into my user-login.tpl page, either through a block administration or embedding directly into it. They did both appear in the page. But when I log in as usual, after hitting the submit button, I always have a message, like Username field is required, E-mail address field is required which all belong to user_register form. It seems that user-login.tpl conflicts with the registration formblock submit button. Am I doing wrong?

Thanks

Comments

mikey_p’s picture

Yes, if you display the same form on the page twice, it may cause issues if they have the same $form_id. I'd suggest trying to rename the $form_id on the form you are adding with the template file.

mikey_p’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.