I have a store in Magento 1.7, and as it is b2b, the first page is login. I need to have a box for Creating account, which I already have. There I need to have a text field to write the e-mail, and then click a button Create account, in order to fill all the necessary information for the registering.
My question is, how can I get the e-mail from the form? And, currently my 'Create account' button is defined as
<button type="button" title="<?php echo $this->__('Create an Account') ?>" class="login" onclick="window.location='<?php echo Mage::helper('persistent')->getCreateAccountUrl($this->getCreateAccountUrl()) ?>';"><span><span class="textLoginButton"><?php echo $this->__('Create an Account') ?></span></span></button>
but this simply redirects to a normal registering page that doesn't include the already provided e-mail. How can I do in order for the e-mail to be included automatically in my registering form?
I guess that there is some method in Magento to retrieve it, but I am new to Magento and don't know which are the available methods.
Any help will be much appreciated.