Tagged Questions
1
vote
1answer
20 views
Re-displaying CodeIgniter data that isn't validated
As I understand it, only values that get validated can be re-loaded on a form if validation fails. Currently I have the following form
<?php echo form_label('Vendors', 'vendors'); ?>
...
0
votes
1answer
25 views
Why does Codeigniter automatically convert special entities in the form validation class if validation fails?
I didn't realize this until now, but when using the CodeIgniter form validation class, if validation fails ($this->form_validation->run() === FALSE), all special characters in the post variables get ...
0
votes
1answer
26 views
Filter out unkown signs php guestbook
I have a website with a guestbook on it. It is built with php (codeigniter).
For filtering out 'bad' words, I am using my own 'blacklist' of words.
If the guestbook comment contains a 'bad word', ...
0
votes
3answers
48 views
Codeigniter : If first rule validated, no need to check the next rules
How to check if first rule is validated, then no need to check second/third rule, for example:
$this->form_validation->set_rules('children','Do you have children?','required');// e.g : answer ...
0
votes
1answer
24 views
How do I individually set a form validation error message in CodeIgniter?
I would like to be able to set form validation error messages individually for my form. Particularly for the "is unique" rule. I writing a member registration form script that and I use that rule to ...
1
vote
1answer
36 views
Codeigniter ReCaptcha and form validation config
Below is a snippet of my code:
auth.php
// Login the user
public function login(){
$view_data = new stdClass;
// Form Data
$view_data->login_form = ...
0
votes
0answers
33 views
Codeigniter - flashdata with routes not working
here is a section of my routes.php file
$route['admin/login'] = 'admin_login';
$route['admin/login/(:any)'] = 'admin_login/$1';
$route['admin/logout'] = 'admin_login/logout';
$route['admin'] = ...
0
votes
0answers
31 views
Form Validation in a Codeigniter Library
I am using Codeigniter and i am trying to build a library which will have as insert a table name from my database and will give some input forms i want as an answer.
The way i use it is ...
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
51 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 ...
1
vote
1answer
48 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
41 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
43 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 ...