summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/helpers/form_helper.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html
index fa96424e1..10019291c 100644
--- a/user_guide/helpers/form_helper.html
+++ b/user_guide/helpers/form_helper.html
@@ -328,7 +328,7 @@ fourth parameter:</p>
<br />
// Would produce:
<br />
-&lt;label id=&quot;username&quot;&gt;What is your Name&lt;/label&gt;</code>
+&lt;label for=&quot;username&quot;&gt;What is your Name&lt;/label&gt;</code>
<p>Similar to other functions, you can submit an associative array in the third parameter if you prefer to set additional attributes. </p>
<p><code>$attributes = array(<br />
&nbsp;&nbsp;&nbsp;&nbsp;'class' =&gt; 'mycustomclass',<br />
@@ -337,7 +337,7 @@ fourth parameter:</p>
echo form_label('What is your Name', 'username', $attributes);<br />
<br />
// Would produce: <br />
-&lt;label id=&quot;username&quot; class=&quot;mycustomclass&quot; style=&quot;color: #000;&quot;&gt;What is your Name&lt;/label&gt;</code></p>
+&lt;label for=&quot;username&quot; class=&quot;mycustomclass&quot; style=&quot;color: #000;&quot;&gt;What is your Name&lt;/label&gt;</code></p>
<h2>form_reset()</h2>
<p>Lets you generate a standard reset button. Use is identical to <dfn>form_submit()</dfn>.</p>