From 928158bf3a308330ab6518ff0d149d4585d7f38f Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 16 Sep 2009 08:20:58 +0000 Subject: adding accept-charset to form_open() --- user_guide/helpers/form_helper.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 79285970d..4ddde6222 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -73,7 +73,7 @@ Form Helper

form_open()

Creates an opening form tag with a base URL built from your config preferences. It will optionally let you -add form attributes and hidden input fields.

+add form attributes and hidden input fields, and will always add the attribute accept-charset based on the charset value in your config file.

The main benefit of using this tag rather than hard coding your own HTML is that it permits your site to be more portable in the event your URLs ever change.

@@ -84,7 +84,7 @@ in the event your URLs ever change.

The above example would create a form that points to your base URL plus the "email/send" URI segments, like this:

-<form method="post" action="http:/example.com/index.php/email/send" /> +<form method="post" accept-charset="utf-8" action="http:/example.com/index.php/email/send" />

Adding Attributes

@@ -97,7 +97,7 @@ echo form_open('email/send', $attributes);

The above example would create a form similar to this:

-<form method="post" action="http:/example.com/index.php/email/send"  class="email"  id="myform" /> +<form method="post" accept-charset="utf-8" action="http:/example.com/index.php/email/send"  class="email"  id="myform" />

Adding Hidden Input Fields

@@ -110,7 +110,7 @@ echo form_open('email/send', '', $hidden);

The above example would create a form similar to this:

-<form method="post" action="http:/example.com/index.php/email/send">
+<form method="post" accept-charset="utf-8" action="http:/example.com/index.php/email/send">
<input type="hidden" name="username" value="Joe" />
<input type="hidden" name="member_id" value="234" />
-- cgit v1.2.3-24-g4f1b