From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- 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 a71aa513d..68d44e662 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -12,7 +12,7 @@ @@ -175,7 +175,7 @@ echo form_input($data);
// Would produce:

<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 +

If you would like your form to contain some additional data, like JavaScript, you can pass it as a string in the third parameter: $js = 'onClick="some_function()"';
@@ -184,17 +184,17 @@ echo form_input('username', 'johndoe', $js);

form_password()

-

This function is identical in all respects to the form_input() function above +

This function is identical in all respects to the form_input() function above except that is sets it as a "password" type.

form_upload()

-

This function is identical in all respects to the form_input() function above +

This function is identical in all respects to the form_input() function above except that is sets it as a "file" type, allowing it to be used to upload files.

form_textarea()

-

This function is identical in all respects to the form_input() function above +

This function is identical in all respects to the form_input() function above except that it generates a "textarea" type. Note: Instead of the "maxlength" and "size" attributes in the above example, you will instead specify "rows" and "cols".

@@ -224,7 +224,7 @@ echo form_dropdown('shirts', $options, 'large');
</select> -

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

If you would like the opening <select> to contain additional data, like JavaScript, you can pass it as a string in the fourth parameter: $js = 'onChange="some_function()"';
@@ -260,7 +260,7 @@ echo form_checkbox($data);
// Would produce:

<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 +

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: $js = 'onClick="some_function()"';
-- cgit v1.2.3-24-g4f1b