10
votes
4answers
9k views

Codeigniter Form Validation - how to unset form values after success?

I realise this request goes against the example provided in the CI documentation (which advises a separate 'success' page view), but I would like to reutilise a given form view after a form has been ...
8
votes
1answer
4k views

Codeigniter: How to build an edit form that uses form validation and re-population?

I have a simple form in codeigniter that I wish to use for the editing or records. I am at the stage where my form is displayed and the values entered into the corresponding input boxes. This is done ...
7
votes
5answers
15k views

Validating form dropdown in CodeIgniter

I am using CodeIgniter's form helper and form validation library to build my forms. I'm having trouble making the dropdown 'sticky' and also finding appropriate validation rules. This is how I'm ...
7
votes
3answers
7k views

Ajax form validation in codeigniter

hellp guys, I've been working on ajax recently, and I have a problem in using it with codeigniter form validation library. I used the example that tool generate in the function ...
6
votes
3answers
408 views

CodeIgniter - PHP Set_Radio on Radio Input

I am working on a website, and I have run into a problem. In order to pre-set or re-input slected values, Codeigniter allows you to use set_radio to solve your problem, seen here: <td>Do You ...
5
votes
4answers
4k views

Easier way to populate form data and validation data in Code Igniter?

I'm new to code igniter. I'm following the form validation tutorial found at: http://www.codeignitor.com/user_guide/libraries/validation.html I find I am typing too much in the view to get the form ...
5
votes
3answers
385 views

What techniques are there for preventing multiple submissions to a competition?

The Project We have a competition coded in PHP, with CodeIgniter. The form has validation on email addresses and mobile numbers. The page itself is hosted inside an iframe on a different domain (it's ...
5
votes
1answer
293 views

Am I doing this wrong, or is there a bug in the CodeIgniter Form Validation library when using arrays as field names?

Here's my controller code to configure the rules: // Previous address(es) $this->form_validation->set_rules('prev_house_number[]', 'House Number', 'trim|alpha_numeric'); ...
5
votes
2answers
801 views

Codeigniter PHP - loading a view at an anchor point

I have a form at the bottom of a long page, if a user fills out the form but it doesn't validate the page is reloaded in the typical codeigniter fashion: $this->load->view('template',$data); ...
4
votes
2answers
10k views

CodeIgniter - Form Validation and File Upload Data

I was wondering if there's a way to validate a file's size with the form validation class in CodeIgniter 2.0. I have a form that contains a file input and I want to do something like this: ...
4
votes
4answers
4k views

Performing both client side and server side validation using jQuery and CodeIgniter

What is the right way of doing both client side and server side validation using jQuery and CodeIgniter? I am using the jQuery form plugin for form submit. I would like to use jQuery validation plugin ...
4
votes
2answers
4k views

Validating multidimensional arrays in Code Igniter with form_validation library

I'm having a weird problem with the form_validation module of code igniter. I'm trying to validate multi dimensional arrays from the form post, but its not working as expected. I've used this a ...
3
votes
1answer
2k views

Creating a custom codeigniter validation rule

I have a function in my login form that checks if the email and password match the values in the database and if so it logs the user into the system. I would like to display a validation error if ...
3
votes
4answers
317 views

White Page of Death on submit [duplicate]

Possible Duplicate: Reference - What does this error mean in PHP? I am having an issue with the following section of code: I can get the error notices in the validation but the next step = ...
3
votes
2answers
1k views

PHP - codeigniter - control date format

I have a form using which users can edit their own birthdate, i save the birthdates in the DB in this format 15/24/1989 which is dd/mm/yyyy how can i check that the form birthday post value is ...

1 2 3 4 5 27
15 30 50 per page