diff options
Diffstat (limited to 'user_guide/helpers')
-rw-r--r-- | user_guide/helpers/form_helper.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html index 77fe59878..324068465 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -346,7 +346,7 @@ fourth parameter:</p> <p>Lets you generate a standard button element. You can minimally pass the button name and content in the first and second parameter:</p>
<code>
-echo form_button(’name’,’content’);<br />
+echo form_button('name','content');<br />
<br />
// Would produce<br />
<button name="name" type="submit">Content</button>
@@ -355,11 +355,11 @@ echo form_button(’name’,’content’);<br /> Or you can pass an associative array containing any data you wish your form to contain:
<code>
$data = array(<br />
- ‘name’ => ‘button’,<br />
- ‘id’ => ‘button’,<br />
- ‘value’ => ‘true’,<br />
- ‘type’ => ‘reset’,<br />
- ‘content’ => ‘Reset’<br />
+ 'name' => 'button',<br />
+ 'id' => 'button',<br />
+ 'value' => 'true',<br />
+ 'type' => 'reset',<br />
+ 'content' => 'Reset'<br />
);<br />
<br />
echo form_button($data);<br />
@@ -370,8 +370,8 @@ echo form_button($data);<br /> If you would like your form to contain some additional data, like JavaScript, you can pass it as a string in the third parameter:
<code>
-$js = ‘onClick="some_function()"’;<br /><br />
-echo form_button(’mybutton’, ‘Click Me’, $js);
+$js = 'onClick="some_function()"';<br /><br />
+echo form_button('mybutton', 'Click Me', $js);
</code>
|