数据不通过url [英] data is not passing through url

查看:120
本文介绍了数据不通过url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过url传递一个控制器的id,但问题是它给我id字段null
编辑链接的结果是像
localhost / home71 / project_management / index。 php / boq_account / edit?id =

i am trying to pass an id to a controller through url but the problem is it gives me the id field null result of the edit link is like "localhost/home71/project_management/index.php/boq_account/edit?id="

$url=base_url();
echo "<td id='edit'><a href='$url project_management/index.php/boq_account/edit?id='$n->id''>Edit</a></td>";

我已经尝试了这么多方式,但没有得到任何result.one事要提到我的$ n- >

i have tried so many ways but not getting any result.one thing to mention that my $n->id is not null it has values but its not showing on the passing id parameter.

推荐答案

尝试这样 -

echo "<td id='edit'><a href='$url project_management/index.php/boq_account/edit?id=".$n->id."'>Edit</a></td>";

这篇关于数据不通过url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆