如何通过URL将变量传递到我的PHP页面? [英] How to pass variables throught the URL into my PHP page?

查看:78
本文介绍了如何通过URL将变量传递到我的PHP页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从网址获取查询以更改我网站中的变量


例如我的网站名为 www.example.com


因此查询将是 www.example.com?qwerty


我希望我的网站中的链接更改为查询确实


所以我网站上的链接会更改为 www.thescripts .com / qwerty


在那里我可以做到这一点请让我知道我非常渴望找到


提前谢谢!

how do i get the query from an url to change variables in my website

for example my website is called www.example.com

so the query would be www.example.com?qwerty

and i want a link in my site to change as the query does

so a link in my site would change to www.thescripts.com/qwerty

is there away i can do this please let me know i am very desperate to find out

thanks in advance!

推荐答案

试试:

[php]

echo
try:
[php]
echo


_GET [''variableName''];

echo
_GET[''variableName''];
echo


GLOBALS [''QUERY_STRING'']; //整个行程

[/ PHP]


REGARDS

JX2
GLOBALS[''QUERY_STRING'']; //WHOLE THING
[/PHP]

REGARDS
JX2


这篇关于如何通过URL将变量传递到我的PHP页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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