codeigniter not recognizing some validation -


so have simple registration form , weird reason, of validation works , doesn't. defined separate language folder language in conern i.e. arabic. works username, password , password confirmation, not rest of fields. going wrong?

 public function registration()      {                   $this->form_validation->set_rules('fullname', 'الاسم الكامل', 'isset | required | alpha');             $this->form_validation->set_rules('username', 'اسم المستخدم', 'required');             $this->form_validation->set_rules('password', 'كلمة السر', 'required');             $this->form_validation->set_rules('passconf', 'إعادة كلمة السر', 'required');             $this->form_validation->set_rules('email', 'الايميل', 'required |email');             $this->form_validation->set_rules('city', 'المدينة', 'required');             $this->form_validation->set_rules('userfile', 'صورة الملف الشخصي', 'upload_no_file_selected');               if($this->form_validation->run() == false)             {                $this->index();             }             else{                $this->user_model->add_user();                $this->thank();             }        } 

form:

<html> <head> <title></title> <meta http-equiv='content-type' content='text/html; charset=utf-8'>  </head> <body dir="rtl">  <?php echo validation_errors(); ?>  <?php echo form_open_multipart('membership/registration'); ?>  <h5>الإسم الكامل</h5> <input type="text" name="fullname" value="" size="80" />  <h5>اسم المستخدم</h5> <input type="text" name="username" value="" size="50" />  <h5>كلمة السر</h5> <input type="text" name="password" value="" size="50" />  <h5>إعادة كلمة السر</h5> <input type="text" name="passconf" value="" size="50" />  <h5>الايميل</h5> <input type="text" name="email" value="" size="50" />  <h5>المدينة</h5> <select name="city">   <option value="riyadh">الرياض</option>   <option value="jeddah">جدة</option>   <option value="dhahran">الظهران</option>   <option value="mecca">مكة</option> </select>  <h5>صورة الملف الشخصي</h5> <input type="file" name="userfile" size="20" /> <br><br>  <div><input type="submit" value="submit" /></div>  </form>  </body> </html> 

appreciate help,

remove spaces between validation rules this:

$this->form_validation->set_rules('fullname', 'الاسم الكامل', 'isset|required|alpha'); 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -