form_open example


    function form_open_multipart(string $action = '', $attributes = [], array $hidden = []): string
    {
        if (is_string($attributes)) {
            $attributes .= ' enctype="' . esc('multipart/form-data') . '"';
        } else {
            $attributes['enctype'] = 'multipart/form-data';
        }

        return form_open($action$attributes$hidden);
    }
}

if (function_exists('form_hidden')) {
    /** * Hidden Input Field * * Generates hidden fields. You can pass a simple key/value string or * an associative array with multiple values. * * @param array|string $name Field name or associative array to create multiple fields * @param array|string $value Field value */
Home | Imprint | This part of the site doesn't use cookies.