Show <form>
tag.
form_open( [ string $method = 'post', string $action = '', array $options = [] ] ) : string
$method string Optional Form method. Possible value: get|post
$action string Optional Form action.
$options array Optional Additional options.
Name | Type | Default | Description |
---|---|---|---|
id | string | '' | Form ID. |
class | string | '' | Class for wrapper. |
attributes | array | [] | Array of custom attributes. |
name | string | '' | Name attribute. |
upload | bool | false | Set true for adding enctype multipart/form-data. |
echo form_open();
// ...
echo form_close();
HTML output:
<form method="post">
</form>