请教怎么修改url某一参数的参数值呢?是要拆开了再拼回去吗

DDD
Release: 2023-11-24 17:35:42
Original
946 people have browsed it

请问如何修改url某一参数的参数值呢?是要拆开了再拼回去吗?
那么请问如何修改url某一参数的参数值呢?是要拆开了再拼回去吗?
http://127.0.0.1/myo/newuser.php?mod=search&type=fastone
比如现在我要修改mod=new
要怎么做呢?

------解决方案--------------------
发送了请求就改不鸟了,
只有这样。
$mod = $_GET['mod'];
if( $mod == 'search' ){
$mod = 'new';
}

如果是字符串 可以

  • HTML code
    
    简单点,可以这么写:
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!