Skip to content

Commit 3f5d81c

Browse files
committed
docs: fix XHTML void element tags
1 parent 4a9f8ae commit 3f5d81c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

user_guide_src/source/helpers/form_helper.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Since the above string contains a set of quotes, it will cause the form
3737
to break. The :php:func:`esc()` function converts HTML special
3838
characters so that it can be used safely::
3939

40-
<input type="text" name="myfield" value="<?= esc($string) ?>" />
40+
<input type="text" name="myfield" value="<?= esc($string) ?>">
4141

4242
.. note:: If you use any of the form helper functions listed on this page,
4343
and you pass values as an associative array,
@@ -106,7 +106,7 @@ The following functions are available:
106106
will return::
107107

108108
<form action="http://example.com/index.php/u/sign-up" method="post" accept-charset="utf-8">
109-
<input type="hidden" id="my-id" name="csrf_field" value="964ede6e0ae8a680f7b8eab69136717d" />
109+
<input type="hidden" id="my-id" name="csrf_field" value="964ede6e0ae8a680f7b8eab69136717d">
110110

111111
.. note:: To use auto-generation of CSRF field, you need to turn CSRF filter on to the form page. In most cases it is requested using the ``GET`` method.
112112

@@ -122,8 +122,8 @@ The following functions are available:
122122
The above example would create a form similar to this::
123123

124124
<form action="http://example.com/index.php/email/send" method="post" accept-charset="utf-8">
125-
<input type="hidden" name="username" value="Joe" />
126-
<input type="hidden" name="member_id" value="234" />
125+
<input type="hidden" name="username" value="Joe">
126+
<input type="hidden" name="member_id" value="234">
127127

128128
.. php:function:: form_open_multipart([$action = ''[, $attributes = ''[, $hidden = []]]])
129129
@@ -457,7 +457,7 @@ The following functions are available:
457457

458458
Example::
459459

460-
<input type="text" name="quantity" value="<?= set_value('quantity', '0') ?>" size="50" />
460+
<input type="text" name="quantity" value="<?= set_value('quantity', '0') ?>" size="50">
461461

462462
The above form will show "0" when loaded for the first time.
463463

@@ -500,8 +500,8 @@ The following functions are available:
500500

501501
Example::
502502

503-
<input type="checkbox" name="mycheck" value="1" <?= set_checkbox('mycheck', '1') ?> />
504-
<input type="checkbox" name="mycheck" value="2" <?= set_checkbox('mycheck', '2') ?> />
503+
<input type="checkbox" name="mycheck" value="1" <?= set_checkbox('mycheck', '1') ?>>
504+
<input type="checkbox" name="mycheck" value="2" <?= set_checkbox('mycheck', '2') ?>>
505505

506506
.. php:function:: set_radio($field[, $value = ''[, $default = false]])
507507
@@ -516,8 +516,8 @@ The following functions are available:
516516

517517
Example::
518518

519-
<input type="radio" name="myradio" value="1" <?= set_radio('myradio', '1', true) ?> />
520-
<input type="radio" name="myradio" value="2" <?= set_radio('myradio', '2') ?> />
519+
<input type="radio" name="myradio" value="1" <?= set_radio('myradio', '1', true) ?>>
520+
<input type="radio" name="myradio" value="2" <?= set_radio('myradio', '2') ?>>
521521

522522
.. php:function:: validation_errors()
523523

0 commit comments

Comments
 (0)