PHP自动在页面中添加查询字符串 [英] PHP auto add query strings in a page

查看:55
本文介绍了PHP自动在页面中添加查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法自动将查询字符串添加到另一个页面?



这里的例子,


$在page1.php上的b $ b我有这个代码:



is there any way to auto add query strings to another page?

here's example,

on page1.php i have this code :

<?php

$id = $_GET['id'] && $name = $_GET['name'];

?>



所以如果我添加$ name查询字符串因此它将在page2.php上自动添加为仅文本或链接等。



谢谢


so every time if i add $name query string so it will be add automatically on page2.php as text only or links etc.

Thanks

推荐答案

id =
id =


_GET [' id']&&
_GET['id'] &&


name =
name =


这篇关于PHP自动在页面中添加查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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