Returns HTML string containing the opening
form tag
with
action attribute pointing to the current page.
The following code outputs the
form tag with specified
id attribute.
<?= open_form(array('id'=>'my_form')) ?>
...
The default value for the
enctype attribute is
multipart/form-data The default value for the
method
attribute is
post. Use the
$attributes parameter to override the default values.
The function also creates a hidden input element with name
ls_session_key inside the form.
It is required for some built-in page actions. Below is a default generated markup string:
<form enctype="multipart/form-data" action="{current page url}" method="post">
<input type="hidden" name="ls_session_key" value="{current session key}"/>