Skip to content

Commit

Permalink
Merge pull request #4037 from totoprayogo1916/update/userguide/code
Browse files Browse the repository at this point in the history
fix codeblock
  • Loading branch information
paulbalandan authored Dec 28, 2020
2 parents 34545ab + 615bde6 commit e5721a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user_guide_src/source/helpers/form_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ The following functions are available:

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

If CSRF filter is turned on `form_open()` will generate CSRF field at the beginning of the form. You can specify ID of this field by passing csrf_id as one of the $attribute array:
If CSRF filter is turned on `form_open()` will generate CSRF field at the beginning of the form. You can specify ID of this field by passing csrf_id as one of the ``$attribute`` array::

form_open('/u/sign-up', ['csrf_id' => 'my-id']);

will return:
will return::

<form action="/u/sign-up" method="post" accept-charset="utf-8">
<input type="hidden" id="my-id" name="csrf_field" value="964ede6e0ae8a680f7b8eab69136717d" />
<input type="hidden" id="my-id" name="csrf_field" value="964ede6e0ae8a680f7b8eab69136717d" />

**Adding Hidden Input Fields**

Expand Down

0 comments on commit e5721a4

Please sign in to comment.