probe tu codigo agregandole una linea y poniendole un valor y jala muy bien
Código PHP:
Ver original<?
function formOpen($action = NULL, $class = "forms", $ID = NULL, $legend = "hola", $method = "post", $enctype = "multipart/form-data") {
$ID = (isset($ID)) ?
' id="'. $ID .'"' : NULL; $legend = (isset($legend)) ?
"<legend>$legend</legend>" . "\n" : NULL; $action = (strstr($action, "http://")) ?
$action : _url
. $action;
$HTML = '<form'. $ID .' action="'. $action .'" method="'. $method .'" class="'. $class .'" enctype="'. $enctype .'">' . "\n\t";
$HTML .= '<fieldset>' . "\n\t\t";
$HTML .= $legend . "\n";
$HTML .= '<input type="submit" value="boton"/>';
return $HTML;
}
function formClose() {
$HTML = "\t" . "</fieldset>" . "\n";
$HTML .= "</form>";
return $HTML;
}
$login = array("action" => "ard.php", "method" => "post",); echo formOpen($login);
echo formClose();
?>