This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

open_form function

Defined in /modules/cms/init/custom_helpers.php, lines 28-41
Author LemonStand eCommerce Inc.
string function open_form(array $attributes=array())
$attributes array an optional associative array of attributes for the form tag.
{return} string returns HTML markup for the form element.
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}"/>

See Also