2007年02月05日
formTagの使い方を探したけど欲しい情報を得られなかった。
ソースを読んで解決。
■関数
function formTag($target = null, $type = 'post', $htmlAttributes = array())
■概要
form要素を生成する
<form action="$target" method="$type" htmlAttributes...>
■引数
▼target
・action属性の属性値に指定するURI
▼type
・formのmethodタイプ
・defaultはpost
▼htmlAttributes
・form要素に付与したい属性値
・例: array('id' => 'register')
無事にid属性を指定出来た。
ソースを読んで解決。
■関数
function formTag($target = null, $type = 'post', $htmlAttributes = array())
■概要
form要素を生成する
<form action="$target" method="$type" htmlAttributes...>
■引数
▼target
・action属性の属性値に指定するURI
▼type
・formのmethodタイプ
・defaultはpost
▼htmlAttributes
・form要素に付与したい属性値
・例: array('id' => 'register')
無事にid属性を指定出来た。