title: How to use form builder in codeigniter?
body: <pre><code>&lt;?
     $form_options =    array(
  
           array(/* Name */
                   'id' =&gt; 'name',
                   'placeholder' =&gt; 'Please Enter Name',
                   'name' =&gt; 'name',
                   'type' =&gt;'text',
                   'label' =&gt; 'Name:'
           ),
           array(/* Email */
                   'id' =&gt; 'email',
                   'placeholder' =&gt; 'Please Enter Email',
                   'name' =&gt; 'email',
                   'type' =&gt;'email',
                   'label' =&gt; 'Email Id:'
           ),
            array(/* Password */
                   'id' =&gt; 'password',
                   'placeholder' =&gt; 'Please Enter Password',
                   'name' =&gt; 'password',
                   'type' =&gt;'password',
                   'label' =&gt; 'Password:'
           ),
           array(/* contact */
                   'id' =&gt; 'contact',
                   'placeholder' =&gt; 'Please Enter Contact',
                   'name' =&gt; 'contact',
                   'type' =&gt;'text',
                   'label' =&gt; 'Contact:'
           ),
  
  
           array(/* Gender */
                   'id' =&gt; 'gender',
                   'label' =&gt; 'Gender',
                   'type' =&gt; 'radio',
                   'options' =&gt; array(
                           array(
                                   'id' =&gt; 'gender',
                                   'value' =&gt; 'male',
                                   'label' =&gt; 'Male'
                           ),
                           array(
                                   'id' =&gt; 'gender',
                                   'value' =&gt; 'female',
                                   'label' =&gt; 'Female'
                           )
                   )
           ),
            array(/* Address */
                   'id' =&gt; 'address',
                   'type' =&gt; 'textarea',
                   'placeholder' =&gt; 'Address'
           ),
           array(/* SUBMIT */
                   'id' =&gt; 'submit',
                   'type' =&gt; 'submit'
           )
       );
  
     echo $this-&gt;form_builder-&gt;build_form_horizontal($form_options);
     ?&gt;
  </code></pre>