From 968b6160fc214219e9f15fe8e47acbe066f41a35 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Mon, 22 Sep 2008 13:49:46 +0000 Subject: typos, html validation --- user_guide/libraries/form_validation.html | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/user_guide/libraries/form_validation.html b/user_guide/libraries/form_validation.html index f7fede674..04074bfbc 100644 --- a/user_guide/libraries/form_validation.html +++ b/user_guide/libraries/form_validation.html @@ -293,7 +293,7 @@ at the same time. To set validation rules you will use the set_rules()$this->form_validation->set_rules(); -

The above function takes three parameters as input:

+

The above function takes three parameters as input:

  1. The field name - the exact name you've given the form field.
  2. @@ -625,19 +625,19 @@ individually.

    To globally change the error delimiters, in your controller function, just after loading the Form Validation class, add this:

    -<?php echo $this->form_validation->set_error_delimiters('<div class="error">', '</div>'); +$this->form_validation->set_error_delimiters('<div class="error">', '</div>');

    In this example, we've switched to using div tags.

    -
  3. Changing delimiters Individually

    +
  4. Changing delimiters Individually

    Each of the two error generating functions shown in this tutorial can be supplied their own delimiters as follows:

    <?php echo form_error('field name', '<div class="error">', '</div>'); ?> -

    Or:

    +

    Or:

    <?php echo validation_errors('<div class="error">', '</div>'); ?> @@ -826,7 +826,7 @@ class Member extends Controller {
    }
    ?> -

    In your validation config file, you will name your rule group member/signup: +

    In your validation config file, you will name your rule group member/signup:

    $config = array(
    @@ -1202,12 +1202,6 @@ must contain the name of the checkbox, the second parameter must contain its val - - - - - - -- cgit v1.2.3-24-g4f1b