From c644128fdd49a47d791240e0e38b54cd22412bc5 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 4 Jul 2007 23:54:32 +0000 Subject: fixed validation errors... about a zillion of em. --- user_guide/helpers/form_helper.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'user_guide/helpers/form_helper.html') diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html index d1eef8d8b..572f2a205 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -155,7 +155,7 @@ echo form_hidden($data);

form_input()

Lets you generate a standard text input field. You can minimally pass the field name and value in the first -and second parameter: +and second parameter:

echo form_input('username', 'johndoe'); @@ -176,7 +176,7 @@ echo form_input($data);
<input type="text" name="username" id="username" value="johndoe" maxlength="100" size="50" style="width:50%" />

If you would like your form to contain some additional data, like JavaScript, you can pass it as a string in the -third parameter: +third parameter:

$js = 'onClick="some_function()"';

@@ -203,7 +203,7 @@ example, you will instead specify "rows" and "cols".

Lets you create a standard drop-down field. The first parameter will contain the name of the field, the second parameter will contain an associative array of options, and the third parameter will contain the -value you wish to be selected. Example: +value you wish to be selected. Example:

$options = array(
                  'small'  => 'Small Shirt',
@@ -225,7 +225,7 @@ echo form_dropdown('shirts', $options, 'large');

If you would like the opening <select> to contain additional data, like JavaScript, you can pass it as a string in the -fourth parameter: +fourth parameter:

$js = 'onChange="some_function()"';

@@ -234,7 +234,7 @@ echo form_dropdown('shirts', $options, 'large', $js);

form_checkbox()

-

Lets you generate a checkbox field. Simple example: +

Lets you generate a checkbox field. Simple example:

echo form_checkbox('newsletter', 'accept', TRUE);
@@ -261,7 +261,7 @@ echo form_checkbox($data);
<input type="checkbox" name="newsletter" id="newsletter" value="accept" checked="checked" style="margin:10px" />

As with other functions, if you would like the tag to contain additional data, like JavaScript, you can pass it as a string in the -fourth parameter: +fourth parameter:

$js = 'onClick="some_function()"';

@@ -335,7 +335,7 @@ Previous Topic:  File Helper Top of Page   ·   User Guide Home   ·   Next Topic:  HTML Helper -

+

CodeIgniter  ·  Copyright © 2007  ·  Ellislab, Inc.

-- cgit v1.2.3-24-g4f1b