title: Data is not inserted in magento database while using custom module for registration
body: <p>I created a <code>custom module to add Land Phone field in registration page</code>. The <code>form display the field but in database the Land Phone number is not inserted</code>. But in <code>eav_attribute table</code> the landphone attribute is added. The only issue is the value of Land Phone is not inserted in customer table. I followed this tutorial: <a href="http://www.fontis.com.au/blog/magento/know-more-about-your-customers-adding-custom-signup-attributes" rel="nofollow">http://www.fontis.com.au/blog/magento/know-more-about-your-customers-adding-custom-signup-attributes</a></p>
  
  <p>I will give you the detailed code what i did.</p>
  
  <p>My module name is <code>TCreg_Customer</code></p>
  
  <p><strong>app/etc/modules/TCreg_Customer.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
      &lt;modules&gt;
          &lt;TCreg_Customer&gt;
          &lt;codePool&gt;local&lt;/codePool&gt;
          &lt;active&gt;true&lt;/active&gt;
          &lt;/TCreg_Customer&gt;
      &lt;/modules&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p><strong>app/code/local/TCreg/Customer/etc/config.xml</strong></p>
  
  <p>I copy <code>app/code/core/Mage/Customer/etc/config.xml</code> file and make 2 changes </p>
  
  <pre><code>&lt;modules&gt;
          &lt;TCreg_Customer&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;/TCreg_Customer&gt;
      &lt;/modules&gt;
  </code></pre>
  
  <p>and add </p>
  
  <pre><code>&lt;landphone&gt;&lt;create&gt;1&lt;/create&gt;&lt;update&gt;1&lt;/update&gt;&lt;/landphone&gt;
  </code></pre>
  
  <p>inside  <code>&lt;customer_account&gt;</code> tag</p>
  
  <p><strong>app/code/local/TCreg/Customer/Model/Entity/Setup.php</strong></p>
  
  <pre><code>&lt;?php
  class TCreg_Customer_Model_Entity_Setup extends Mage_Customer_Model_Entity_Setup
  {
      public function getDefaultEntities(){
  
          return array(
  
                  'landphone'=&gt;array(
                          'type'=&gt; 'varchar',
                          'label'=&gt; 'Land Phone',
                          'visiable' =&gt; true,
                          'sort_order' =&gt; 80,
                  )
          );
      }
  } 
  ?&gt;
  </code></pre>
  
  <p>The Land Phone field is set in <code>register.phtml</code> located in <strong>app/design/frontend/mytheme/template/persistent/customer/form/register.phtml</strong> </p>
  
  <pre><code>&lt;!--landphone field begin--&gt;
      &lt;div class="field"&gt;
       &lt;label for="landphone"&gt;&lt;?php echo $this-&gt;__('Land Phone') ?&gt;&lt;/label&gt;
       &lt;div class="input-box"&gt;
       &lt;input type="text" name="landphone" id="landphone" value="&lt;?php echo $this-&gt;escapeHtml($this-&gt;getFormData()-&gt;getLandphone()) ?&gt;" title="&lt;?php echo $this-&gt;__('Land Phone') ?&gt;" class="input-text &lt;?php echo $this-&gt;helper('customer/address')-&gt;getAttributeValidationClass('landphone') ?&gt;" /&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  &lt;!--landphone field end--&gt;
  </code></pre>
  
  <p><strong>app/design/frontend/mytheme/template/persistent/customer/address/edit.phtml</strong></p>
  
  <pre><code>&lt;!--Landphone field begin--&gt;
      &lt;div class="field"&gt;
      &lt;label for="landphone"&gt;&lt;?php echo $this-&gt;__('Land Phone') ?&gt;&lt;/label&gt;
       &lt;div class="input-box"&gt;
       &lt;input type="text" name="landphone" value="&lt;?php echo $this-&gt;htmlEscape($this-&gt;getAddress()-&gt;getLandphone()) ?&gt;" title="&lt;?php echo $this-&gt;__('Land Phone') ?&gt;" class="input-text &lt;?php echo $this-&gt;helper('customer/address')-&gt;getAttributeValidationClass('landphone') ?&gt;" id="landphone" /&gt;
  
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;!--Landphone field end--&gt;
  </code></pre>
  
  <p>The new attribute (land phone) needs to be added to the Magento database. So I added these bit of code in <code>register.phtml</code></p>
  
  <pre><code>$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
  $setup-&gt;addAttribute('customer', 'landphone', array(
      'label'     =&gt; 'Land Phone',
      'type'      =&gt; 'varchar',
      'input'     =&gt; 'text',
      'visible'   =&gt; true,
      'position'  =&gt; 1,
      ));
  </code></pre>
  
  <p>I think the only issue is the value of Land phone is not inserted in customer table. But I can't find the solution. So please help me .. How can I solve this?? Any help is really appreciable.. </p>
  
  <p>My <strong>magento version is 1.9.1.0</strong></p>