how can I pass GET url which contains character "?" to php file.
for example I have url:

I want to pass all string "file2.php?a1=1&a2=2&a3=3" into file1.php
now on file1.php, if I use
echo "$v";

I only get

it lost rest "a2=2&a3=3"

how can I fix this issue?

Any idea?


That's the short answer

See all your variable in get request like-

echo '<pre>';
echo '</pre>';

This will print the $_get variable.
You can access each var by its name like index of the array for ex.
$p1 = $_get;
$p2 = $_get;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.