提交后获取不到值 phpjavascript 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $post['txt_Name'] = $tel;$tel在哪里定义的?你的框架是直接post后就可以使用该变量了么?$post = $this->input->post(NULL, TRUE);打印¥post的值是什么 public function _FeedBack(){$post = $this->input->post(NULL, TRUE);if(isset($post['btnSubmit'])){ $post['addtime'] = time(); $this->message->insert($post);}}<form action="{site_url('message')}" method="post" name="form1" ><input name="tel" type="text" class="px" id="tel" value="" ><a id="showcard1" class="submit" href="javascript:void(0)" onClick="document.getElementById('btnSubmit').click()">提交留言</a><input type="submit" name="btnSubmit" value="btnSubmit" onClick="return CheckData();" id="btnSubmit" style="display:none" /></form>以前是这样的 这样可以获取到值 但是想改成上面那样 就获取不到值了 <form action="{site_url('message')}" method="post" name="form1" ><input name="tel" type="text" class="px" id="tel" value="" ><a id="showcard1" class="submit" href="javascript:void(0)" onClick="document.getElementById('btnSubmit').click()">提交留言</a><input type="submit" name="btnSubmit" value="btnSubmit" onClick="return CheckData();" id="btnSubmit" style="display:none" /></form>用这个 PHP统计网卡流量怎么做啊? 循环 排列问题? 请教图片上文字水印的位置问题 获取文件的信息 用PHP去掉一些html怎么做? 邮件发送问题 请教用过PHPMailer类发送邮件的高手~~~ 求一函数 html文件转化为字符串 可以给我一些php操作xml的资料吗? 一个小问题,分很高,懂的都来!!!!! !邮件问题! 如何在两个页面之间进行数据的传送?
$tel在哪里定义的?你的框架是直接post后就可以使用该变量了么?$post = $this->input->post(NULL, TRUE);
打印¥post的值是什么
public function _FeedBack(){
$post = $this->input->post(NULL, TRUE);
if(isset($post['btnSubmit'])){
$post['addtime'] = time();
$this->message->insert($post);
}
}<form action="{site_url('message')}" method="post" name="form1" >
<input name="tel" type="text" class="px" id="tel" value="" >
<a id="showcard1" class="submit" href="javascript:void(0)" onClick="document.getElementById('btnSubmit').click()">提交留言</a>
<input type="submit" name="btnSubmit" value="btnSubmit" onClick="return CheckData();" id="btnSubmit" style="display:none" /></form>以前是这样的 这样可以获取到值 但是想改成上面那样 就获取不到值了
<input name="tel" type="text" class="px" id="tel" value="" >
<a id="showcard1" class="submit" href="javascript:void(0)" onClick="document.getElementById('btnSubmit').click()">提交留言</a>
<input type="submit" name="btnSubmit" value="btnSubmit" onClick="return CheckData();" id="btnSubmit" style="display:none" /></form>
用这个