我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在href中设置php变量但不在url中显示它

I have a link

<p><a href="?action=course_list">List Courses</a></p> 

in a view, and an $action variable in a controller that tests the value of the $action then displays the appropriate view.

When I press the ahref link I dont want the variable to show in the URL, It shows http://localhost/project/?action=course_list

I want the url to say the name of the view that is loaded in the controller or http://localhost/project/course_list

近期文章

  • 获取iframe变量url的值
  • 在woocommerce中更改相关产品类别
  • 用于PHP多付款捕获的REST API SDK
  • 激活链接在邮件接收时自行激活
  • 在wordpress中重新加载页面后销毁的php会话变量值
  • 如何使用Json将数据从angularJS控制器发送到PHP
  • 尝试所有推荐选项后无法登录WordPress
  • 从JSON检索值并为每个寄存器生成HTML
  • 使用AJAX更新Google Charts值
  • laravel 5.3不解释index.php
  • 填充对话框后添加行
  • yii imagemagick php5.4到php7
  • 在导入csv到mysql db表期间找不到文件
  • 在表单提交上显示表单确认消息
  • 在PHP中显示来自c#web服务的数据的最佳方式
  • 将nad27数据转换为nad83的函数
  • 使用Javascript重定向和显示警报
  • PHP - 如何比较两个不同的日期时间? [重复]
  • Android:无法使用PHP MySQL上传登录@ http://ramses.freewha.com/
  • 在Raspbian Jessie上安装Composer失败了

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华