i'm trying to get 2 url parameters using this code:
$page = htmlspecialchars($_GET["page"]);
$category = htmlspecialchars($_GET["category"]);
and the result i get looks like this:
leaderboard?category=any%
and the url looks like this:
?page=leaderboard?category=any%
How do i get both results now?
Cheers, Chris.
try this (&) instead of this (?) . Example below
?page=leaderboard&category=any%
第一个查询字符串(URL参数)始终以问号(?)开头,其余部分以与号(&)开头,因此该URL应为
?page=leaderboard&category=any%&anythingelse=value
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.