Commit eeb572b1 authored by Kjartan's avatar Kjartan
Browse files

- Changed form_file($name) to form_file($title, $name, $size, $description = 0).

  This change extends the functionality and makes it conform more with the
  other form_* functions.
parent 031e4d42
......@@ -184,12 +184,12 @@ function form_select($title, $name, $value, $options, $description = 0) {
return form_item($title, "<SELECT NAME=\"edit[$name]\">$select</SELECT>", $description);
}
function form_hidden($name, $value) {
return "<INPUT TYPE=\"hidden\" NAME=\"edit[$name]\" VALUE=\"". check_textfield($value) ."\">\n";
function form_file($title, $name, $size, $description = 0) {
return form_item($title, "<INPUT TYPE=\"file\" NAME=\"edit[$name]\" SIZE=\"$size\"><P>\n", $description);
}
function form_file($name) {
return "<INPUT TYPE=\"file\" NAME=\"edit[$name]\">\n";
function form_hidden($name, $value) {
return "<INPUT TYPE=\"hidden\" NAME=\"edit[$name]\" VALUE=\"". check_textfield($value) ."\">\n";
}
function form_submit($value) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment