names=form visibility=public kind=defined --- form(method = "post", action = nil, enctype = "application/x-www-form-urlencoded") -> String --- form(method = "post", action = nil, enctype = "application/x-www-form-urlencoded"){ ... } -> String form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。 @param method method 属性の値として "get" か "post" を指定します。 @param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。 @param enctype enctype 属性の値を指定します。デフォルトは "application/x-www-form-urlencoded" です。 例: form{ "string" } #
string
form("get"){ "string" } #
string
form("get", "url"){ "string" } #
string
--- form(attributes) -> String --- form(attributes){ ... } -> String form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。 @param attributes 属性をハッシュで指定します。 例: form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" } #
string
@see [[m:CGI::HtmlExtension#multipart_form]]