且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用$ _GET url变量重定向用户?

更新时间:2023-09-28 23:02:34

您将要使用PHP代码

header("Location: http://www.example.com/"); 

最有可能.您可以尝试执行以下操作:

most likely. What you can try doing is this:

$url = "refresh:5; url=http://www.".$_GET['site'];
header($url)

对不起,我忘记添加5秒的等待时间.

Sorry I forgot to add the 5 second wait time.