class TestAction extends Action {
public function index() {
if (IS_POST) {
echo '已经提交','<br />';
}
$this->display();
}
}
tpl :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xm
<head>
<me
<ti
<sc
<sc
</head>
<body>
<form id='form1' action='index.php?g=RestD&m=test&a=index' method='post' />
<input type='text' name='name'/>
<input type='submit'/>
</form>
</body>
</html>
上面的 tpl ,加了 <sc
已经解决了!!!
最佳答案