您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

提交后获取不到值

2026/1/3 5:28:55发布22次查看
提交后只能获取到时间 但获取不到input的值
php
public function _feedback(){$post = $this->input->post(null, true);$ac=$_request['ac'];if($ac=='activityuser_sn'){ $post['addtime'] = time();$post['txt_name'] = $tel; $this->asdasd->insert($post);$prize_arr =array('success'=>'true'); //这是提交后填写订单成功的echo json_encode($prize_arr);}}
html
js
$(function() { window.requestanimframe = (function() { return window.requestanimationframe || window.webkitrequestanimationframe || window.mozrequestanimationframe || window.orequestanimationframe || window.msrequestanimationframe || function(callback) { window.settimeout(callback, 1000 / 60) } })(); var totaldeg = 360 * 3 + 0; var steps = []; var lostdeg = [36, 66, 96, 156, 186, 216, 276, 306, 336]; var prizedeg = [6, 126, 246]; //var lostdeg = [36, 66, 96, 156, 186, 216, 276, 306, 336]; //var prizedeg = [6,36, 66, 96, 126,156, 186, 216,246, 276, 306, 336]; var prize, sncode; var count = 0; var now = 0; var a = 0.01; var strmsg; var outter, inner, timer, running = false; function countsteps() { var t = math.sqrt(2 * totaldeg / a); var v = a * t; for (var i = 0; i input->post(null, true);
打印¥post的值是什么
$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);}}
提交留言
以前是这样的  这样可以获取到值   但是想改成上面那样 就获取不到值了
提交留言
用这个
提交留言
用这个
我想结合js 才没用这个的
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product