title: Add multiple fields in registration form magento
body: <p>I want to add multiple fields in registration form.</p>
  
  <p>installation file is:- </p>
  
  <pre><code>&lt;?php
  
       $installer = $this;
       $installer-&gt;startSetup();
       $setup = Mage::getModel('customer/entity_setup', 'core_setup');
       $setup-&gt;addAttribute('customer', 'accounttype', array(
  'type' =&gt; 'int',
  'input' =&gt; 'select',
  'label' =&gt; 'Accounttype',
  'global' =&gt; 1,
  'visible' =&gt; 1,
  'required' =&gt; 0,
  'user_defined' =&gt; 1,
  'default' =&gt; '0',
  'visible_on_front' =&gt; 1,
      'source' =&gt;  'profile/entity_accounttype',
   ));
  
    $setup-&gt;addAttribute('customer', 'tva', array(
  'type' =&gt; 'int',
  'input' =&gt; 'select',
  'label' =&gt; 'Tva',
  'global' =&gt; 1,
  'visible' =&gt; 1,
  'required' =&gt; 0,
  'user_defined' =&gt; 1,
  'default' =&gt; '0',
  'visible_on_front' =&gt; 2,
  'source' =&gt;  'profile/entity_tva',
   ));
     $setup-&gt;addAttribute('customer', 'companycountry', array(
  'type' =&gt; 'varchar',
  'input' =&gt; 'text',
  'label' =&gt; 'Companycountry',
  'global' =&gt; 1,
  'visible' =&gt; 1,
  'required' =&gt; 0,
  'user_defined' =&gt; 1,
  'default' =&gt; '0',
  'visible_on_front' =&gt; 4,
  'source' =&gt;  'profile/entity_companycountry',
  ));
   $setup-&gt;addAttribute('customer', 'companycomment', array(
  'type' =&gt; 'varchar',
  'input' =&gt; 'text',
  'label' =&gt; 'Companycomment',
  'global' =&gt; 1,
  'visible' =&gt; 1,
  'required' =&gt; 0,
  'user_defined' =&gt; 1,
  'default' =&gt; '0',
  'visible_on_front' =&gt; 3,
  'source' =&gt;  'profile/entity_companycomment',
  ));
       if (version_compare(Mage::getVersion(), '1.6.0', '&lt;='))
     {
  $customer = Mage::getModel('customer/customer');
  $attrSetId = $customer-&gt;getResource()-&gt;getEntityType()-&gt;getDefaultAttributeSetId();
  $setup-&gt;addAttributeToSet('customer', $attrSetId, 'General',            'accounttype','tva','companycountry','companycomment');
     }
  
    if (version_compare(Mage::getVersion(), '1.4.2', '&gt;='))
  {
  Mage::getSingleton('eav/config')
  -&gt;getAttribute('customer', 'accounttype',  'tva','companycountry','companycomment' )
  -&gt;setData('used_in_forms', array('adminhtml_customer','customer_account_create','customer_account_edit','checkout_register'))
  -&gt;save();
  
    }
  
   $tablequote = $this-&gt;getTable('sales/quote');
    $installer-&gt;run("
    ALTER TABLE  $tablequote ADD  `customer_accounttype` INT NOT NULL,
                        ADD `customer_tva` INT NOT NULL,
                  ADD `customer_companycountry` varchar(100) NOT NULL,
                  ADD `customer_companycomment` varchar(1000) NOT NULL
     ");
  
     $installer-&gt;endSetup();
  </code></pre>
  
  <p>I made 4 source model for each field. only one field us made &amp; also data is not saving in database. Please help me where I am wrong.</p>