Questions tagged [codeigniter-form-validation]

33 questions
4
votes
1 answer

idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated

I am using codeigniter framework for my site, but in form_validation I am getting error I followed this link in stackoverflow but it didn't work for me followed link: idn_to_ascii() in 5.2.17 Issue: code in codeigniter…
user_1234
  • 741
  • 1
  • 9
  • 22
1
vote
0 answers

Cannot show callback validation message in a model

I'm using codeigniter 3 to build a simple login form but my callback validation message didn't work. Here is my code: LoginForm_model.php class LoginForm_model extends CI_Model { private $username; private $password; protected…
Henry Gunawan
  • 922
  • 3
  • 18
  • 38
1
vote
2 answers

How To Fix Form Validation Error in Codeigniter 4

I have used Codeigniter 4 Form Validation in login form.Also,the validation form works well or good. When the login page is loaded Before that imported field also is showed the errors. In below ,I inserted the controller and view codes that relate…
1
vote
2 answers

Unexpected Notice in CodeIgniter form validation

here is my simplified view 'u_name','placeholder' => 'Your Name'); echo form_input($data); echo form_label('User emails:', 'u_email'); $data=…
Mobeen Sarwar
  • 514
  • 5
  • 23
1
vote
1 answer

How to get data from another table matching 2 fields to same 1 field from another table

I have 3 table Player Playerid Player name Team Team id Player1 foreign key playerid from table(player) Player2 foreiy key playerid Match Matchid Teamid Playerid Now I want a player name from the player table for player1 and player2 in Dropdown…
1
vote
1 answer

How model can save data from controller in Codeigniter

I have a web application that need to send message to many friends.But i suffer an error..please help me.... Here below is the my controller public function message(){ $this->form_validation->set_rules('message','Message',…
1
vote
2 answers

Array to string conversion php form_helper error

A PHP Error was encountered Severity: Notice Message: Array to string conversion Filename: helpers/form_helper.php Line Number: 522 Here is my view that contains form
S. Haddad
  • 15
  • 1
  • 9
0
votes
0 answers

Getting issue in form validation error where i am getting database object dynamic

I have one admin panel where i can create multiple companies. for each companies, I am creating new database. each company database credentials are being store in master database. database credentials are being loaded based on subdomain of each…
0
votes
0 answers

HTML Dynamic input fields form validation in Codeigniter

I have created this HTML form for adding education details dynamically. I tried to add form validation on it in Codeigniter but form validation is not running.
0
votes
0 answers

problem (my_form_validation) not working properly for upload input

hoping someone can help me solve this problem, thanks a lot for providing the solution i recently had a problem with my library called my_form_validation on codeigniter version 3. i don't know why it can enter validation true even though it was…
0
votes
0 answers

How do I set the old() value of a form_dropdown in Codeigniter 4?

I've got a form in Codeigniter 4 and I'm using the form helpers to build the form. When I use a form_input I can reload the submitted values of the form using the old() method. Like below.
0
votes
1 answer

Codeigniter: Custom validation is not executed

I'm trying to create my custom validation which is customer ID is required if certain option is selected. Right now, I just want to test if the custom validation is working so I don't care about the options and only set message and always return…
Henry Gunawan
  • 922
  • 3
  • 18
  • 38
0
votes
1 answer

How To Make Form Validation Codeigniter?

I want to make form validation on codeigniter this is the code from alternatif.php on controller class Alternatif extends CI_Controller { public function __construct() { parent::__construct(); …
0
votes
2 answers

Codeigniter - form validation

I am validating form in Codeigniter using form_validation library and setting rules using an array. I want validation message on max_length like this: Username may not be greater than 255 character. %s may not be greater than %? character. The…
0
votes
2 answers

how to show warning of empty field on form validation?

these are my code for form validation :
1
2 3