Tagged Questions
0
votes
2answers
42 views
Extending Validation Library - CI2
I need a to set up a validation for student ID's and the CI native library is not cutting it, so I extended. I however am having an issue getting it work, and I don't quite know where I am goofing up. ...
-2
votes
0answers
44 views
Codeigniter dont recognize post value [closed]
I have a simple html form and some php that input the POST variables into a mysql database. However, I noticed that the form can't parse validation even if data exist.
Validation rules:
...
2
votes
0answers
22 views
Codeigniter - How to validate a list of dynamic input fields where the validation rule depend on another dynamically created field [duplicate]
I am new to Codeigniter and I am using Codeigniter 2.1.3.
Scenario:
I have a 'Lesson' record,
a 'Lesson' can have zero or multiple 'Lesson_student' records,
each 'Lesson_student' record requires a ...
0
votes
1answer
39 views
Update database with populated Form using Codeigniter
I managed to retrieve user's data from database and populate a form for future updates. With my view in place and data loaded on the fields, I have an update button that calls my controller for ...
0
votes
1answer
34 views
Why `set_radio` doesn't work when “form_validation” is included?
I am calling a view
function index() {
$this->load->helper("form");
$this->load->library("form_validation");
$this->load->view("index");
}
And then I have
<?php ...
0
votes
0answers
39 views
Validate webservice parameters
I'm quite new to Codeigniter so kindly help me through..
I'm writing a RESTful web service with Codeigniter - is there a way to validate the parameters I get in the 'POST' request's json?
By ...
0
votes
2answers
41 views
PHP Regular Expression for Bengali Word/Sentence
I am developing a web application using PHP 5.3.x. Everything is working fine, but unable to solve an issue due to regular expression problem with Bengali Punctuation. Following is my code:
$value ...
0
votes
1answer
26 views
Validating Data for an Existing Record in Codeigniter
I have encountered an issue on which I haven't found much documentation online. I'm hopeful the SO community will have some advice.
I am currently trying to build a Profile Update page, which doesn't ...
-1
votes
1answer
42 views
CodeiIgniter: manually set per-field messages [duplicate]
I'm using CodeIgniter's form validation with its per-field rules, but after the validation successfully runs in some circumstances, I want to manually add a per-field error message and re-display the ...
1
vote
1answer
70 views
Use codeigniter Form validation lib. to validate arrays not from post
Might be a duplicate. but i couldnt find anything on google so here we Go.
i have a form that submit data. this data is further process and split it into variables.
example
My form post <input ...
0
votes
2answers
148 views
CodeIgniter form validation, re-populating dynamically added fields
I've got a form like this:
<form action="" method="post">
<input type="text" name="name[]">
<input type="text" name="name[]">
</form>
<button id="add">Add extra ...
0
votes
1answer
66 views
How to make codeigniter sticky form when error comes from upload file field
I have a form that allows user to upload multiple files. Additionaly user have to fill other input text fields like address, email etc.
I don't know how to make form sticky if error comes from file ...
-1
votes
1answer
49 views
Codeigniter form_validation not working
I have used codeigniter in the past but I am building a social network and I am working on the registration. I have autoloaded the form and form validation helpers. I have a form going to my user ...
2
votes
2answers
212 views
There is no error message when callback function runs in codeigniter form validation
Sorry for my bad english,
I'm creating a form that takes some values specifying reporting options in my codeigniter project. I want to show error messages created in my callback functions. I have 3 ...
0
votes
2answers
62 views
codeigniter callback from private methods not working
I doing form validation in CodeIgniter using Form Validation Library and my custom callbacks.
public function insert_user()
{
if($this->input->post('submit')) {
// load form ...
0
votes
1answer
76 views
Code Igniter Custom Field Validation Not Working
I created a custom validation in Code Igniter. I have the following code but the is_FieldUnique validation is not working. Even if, I var_dump() the parameters still I am not getting the it was ...
1
vote
1answer
51 views
Unique e-mail address registraton code not working as expected | encode_decode issue?
I'm working on a user registration form. I am trying to make it so that users must have an email address that is not already registered in the system.
I believe that the is_unique function is not ...
0
votes
0answers
56 views
codeigniter validation of array of radio button
I'm using codeigniter and I have this problem.
There an array of radio button like below:
<input type="radio" name="title[0]" value="Mr."> Mr.
<input type="radio" name="title[0]" ...
0
votes
1answer
109 views
Issue with CodeIgniter Form Validation
As usually, I set the rules for form validation, and if they don't pass I use $this->load->view() and load the form again.
Everything works fine with Firefox and Opera. But in all others ...
1
vote
1answer
110 views
Username recovery code not working as expected
I am working on a site for the company I work for. It requires users register and log in. All of the data is stored on SQL database. I am trying to add a "Lost Username' form for username recovery via ...
0
votes
0answers
45 views
Codeigniter 'Saving Sets of Validation Rules to a Config File'
I have studied 'http://ellislab.com/codeigniter/user-guide/libraries/form_validation.html#overview'.
I've tried to 'export' my set of rules to form_validation.php in application/config/ folder and it ...
0
votes
1answer
46 views
Codeigniter - edit form (repopulating) with edit_unique
It seems that the edit_unique function, which is desribed here - Validating Uniqueness In CodeIgniter When Updating A Record, kills the set_value function.
All works fine, which something like ...
1
vote
1answer
65 views
Codeigniter does not keep E-Mail Field Value
I got a strange error with keeping form values in CodeIgniter when validation fails.
I am using many fields in a form, one of which is the E-Mail.
I have implemented the validation rules for E-Mail ...
0
votes
1answer
65 views
call javascript validation function from view in codeigniter
i want to validate a form in clint side in codeignigter. i have a view and a javascript function. how can i call the javascript function to validate the form. here is my code
function validate()
...
0
votes
1answer
73 views
Validating Dynamically generated field arrays in codeigniter
i have a form where some fields are dynamically generated.
<table class="insideform">
<tr>
<td>
...
0
votes
1answer
95 views
Is there a way to mingle validations in jQuery and CodeIgniter
If we want to include jQuery Validation plugin as well as code igniter form_validation class at once we have to define the validation rules in both jQuery validation script as well as in CodeIgniter ...
-2
votes
1answer
47 views
Codeignitor dynamic page loses content after validation [closed]
I have a dynamic page, which is being passed a lot of different variables that set up the page and display data/content.
The page in question is also a large form, which I in turn use codeigniter to ...
0
votes
1answer
56 views
Codeigniter Form Validation: Where to set rules?
I'm trying to achieve the "skinny controller", "fat view" and "fat model" structure. However, I am constantly obstructed by the form_validation library.
If that controller deals with a form that has ...
1
vote
1answer
185 views
CodeIgniter Form Validation Error Redirect
I have the following controller, which works fine in terms of validating the form and displaying the error.
The user attempts to login from: http://mydomain.com/index.php/login
However, when the ...
0
votes
0answers
128 views
CodeIgniter form validation always return false
I've been scouring the webs and potching with my code for hours now and can't seem to figure out why this isn't working.
I have a template library which scans a template.html for {@tags} and then ...