formから変数を取得
[HTML]
<form name="form" action="./sample01.php" method="GET">
<input name="name" type="text">
[PHP]
$name = $_REQUEST["name"];
input のnameが対応している。
formから変数を取得
[HTML]
<form name="form" action="./sample01.php" method="GET">
<input name="name" type="text">
[PHP]
$name = $_REQUEST["name"];
input のnameが対応している。
echo $this->Form->create('User','Gallery', array('action' => 'index/7', 'type' => 'get','id' => 'searchform');
type: ‘post’, ‘get’, ‘file’, ‘put’ , ‘delete’のから選択
なおIDを受け取りたくない場合は
'url' => array(
'id' => null
)
と指定 する。
#新しいタブで外部サイトへリンク
$html->link(__(' Help', true),
'http://www.test.com/help.html',
array('target'=>'_blank')
);
#同じタブで外部サイトへリンク
$html->link(__(' Help', true),
'http://www.test.com/help.html',
,null,null,false
);