|
view的zhanshi.phpHTML复制代码 <!doctype html><html>
<head>
<meta charset="utf-8">
<title>充值 </title>
</head>
<body>
<h1>充值 </h1>
<from method="post" action="<?php echo site_url('Test1/zhanshi')?>">
用户名 <input type="text" name="username">
充值金额 <input type="number" name="money">
<input type="submit" value="提交">
</from>
</body>
</html>
复制代码 控制器里的Test1.phpPHP复制代码 <?php
class Test1 extends CI_Controller {
public function zhanshi (){
var_dump($this->input->post('username'));
$this->load->helper('url');
$this->load->view('test1/zhanshi.php');
}
} 复制代码
想知道为什么按了提交以后页面不跳转,切var_dump的值一直未null
|
|