Permalink
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 383 Bytes
<?php
/**
*
*/
function smarty_function_form_tag($params,$template){
$smarty = atk14_get_smarty_from_template($template);
$url = Atk14Utils::BuildLink($params,$smarty);
$attrs = Atk14Utils::ExtractAttributes($params);
$attrs["action"] = $url;
if(!isset($attrs["method"])){ $attrs["method"] = "post"; }
$attrs = Atk14Utils::JoinAttributes($attrs);
return "<form$attrs>";
}