doujizhong8352 2015-08-30 18:48
浏览 57

如何从这个网址获取参数?

normally it is working as expected, but while building my login page it is not working as I want to.

Well url is http://localhost/?page_id=96?msg=INVALID_PASSWORD_MSG

And I am trying to make it work this..but it is not working, I will be happy for every help :)

<?php if (isset($_GET['msg'])) { ?>
<div class="invallidpassword"><cite><?php echo $_GET['msg']; ?></cite></div>
<?php } ?>
  • 写回答

1条回答 默认 最新

  • dsue14118 2015-08-30 18:57
    关注

    I think you need to correct the question marks. Lets say you have a query page which retrieves page content from database. Then It should be something like following.

    http://localhost/query?page_id=96&msg=INVALID_PASSWORD_MSG

    The first question mark added after the requested page, and the parameters are separated by &

    评论

报告相同问题?

悬赏问题

  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思