title: Why last name input disappear?
body: <p>i try to make function which makes it easy to use input text in function_html.php</p>
  
  <pre><code>function form_input($label, $name, $type="text", $class="", $placeholder="", $attr=""){
     echo'&lt;div class="form-group"&gt;
     &lt;label for="'.$name.'"&gt;'.$label.'&lt;/label&gt;
     &lt;input type="'.$type.'" name="'.$name.'" id="'.$name.'" class="'.$class.'" placeholder="'.$placeholder.'" '.$attr.'&gt;
     &lt;/div&gt;';
  }
  </code></pre>
  
  <p>and than i make a form that call the form_input function in login_view.php</p>
  
  <pre><code>&lt;form id="register-form" action="&lt;?= BASE_PATH ?&gt;/login/register-submit" method="post" role="form" style="display: none;"&gt;
                                       &lt;?php
     if(isset($data['msg'])){
        if(is_array($data['msg'])){
  ?&gt;
     &lt;div class="alert alert-danger"&gt;
        &lt;ul&gt;
  &lt;?php
        foreach($data['msg'] as $error){
           echo "&lt;li&gt;$error&lt;/li&gt;";
        }
  ?&gt;
        &lt;/ul&gt;
     &lt;/div&gt;
  &lt;?php
        }else{
           echo "&lt;div class='alert alert-success'&gt;$data[msg]&lt;/div&gt;";
        }
     }
     echo "
     &lt;label for='username'&gt;Username&lt;/label&gt;
     &lt;div class='form-group input-group'&gt;
     &lt;span class='input-group-addon'&gt;@&lt;/span&gt;
     &lt;input type='text' name='username' id='usernamer' class='form-control' placeholder='' required data-error='Username 6-8 a-z'&gt;
     &lt;/div&gt;";
  form_input("Password", "passwordr", "password", "form-control", "", "required data-error='Password can't be null");
  form_input("Re-Password", "passwordr2", "password", "form-control", "", "required data-error='Password can't be null");
  form_input("Email", "email", "email", "form-control", "", "required data-error='Email can't be null");
  form_input("First Name", "fname", "text", "form-control", "", "required data-error='First Name 2-10 a-z");
  form_input("Last Name", "lname", "text", "form-control", "", "required data-error='Last Name 2-10 a-z");
  ?&gt;
                                  &lt;/form&gt;
  </code></pre>
  
  <p>but <code>Last Name</code> field disappear
  <img src="https://i.stack.imgur.com/Zp04X.png" alt="form screen shoot"></p>