module CGI::HtmlExtension

def submit(value = nil, name = nil)

#
submit("VALUE" => "ok", "NAME" => "button1", "ID" => "foo")

#
submit("ok", "button1")

#
submit("ok")

#
submit

Alternatively, the attributes can be specified as a hash.

of the input.
+value+ is the text to display on the button. +name+ is the name

Generate a submit button Input element, as a String.
def submit(value = nil, name = nil)
  attributes = if (not value) or value.kind_of?(String)
                 { "TYPE" => "submit", "VALUE" => value, "NAME" => name }
               else
                 value["TYPE"] = "submit"
                 value
               end
  input(attributes)
end