获取ID url显示帮助 [英] Get ID url display help

查看:44
本文介绍了获取ID url显示帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在这方面取得进展.有人如何使用 PHP 和 MySQL 产生这个结果.原始链接是 samplesite.com/welcome.php然后用户点击页面内的链接,该链接变为 samplesite.com/welcome.php?hi=54&mov=777.

I want to know how to move forward on this. How does someone produce this result using PHP and MySQL. Original link is samplesite.com/welecome.php A user then clicks on a link within the page, that link becomes samplesite.com/welecome.php?hi=54&mov=777.

我知道如何生成在此 cass 中为 ?hi=54 的 get url id,当有人单击链接时,我如何完成 &mov=77页面内.我正在使用 php 和 mysql.

I know how to produce the get url id which in this cass is ?hi=54, how can i accomplish &mov=77 when someone clicks a link within the page. i am using php and mysql.

推荐答案

在 ?hi=54 页面使用这个:

Use at the ?hi=54 page this:

$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']; 

它显示了带有 $_GET 参数的链接.

It shows up the a link with $_GET parameters.

示例:

<a href="<?= $_SERVER['PHP_SELF']."?".htmlspecialchars($_SERVER['QUERY_STRING']); ?>&mov=77">Next Page</a>

这篇关于获取ID url显示帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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