Reputation: 75
test.php?aa=c++ and echo $_GET['aa'] result only c without ++
<?php
echo $_GET['aa'];
?>
Upvotes: -4
Views: 74
Reputation: 96
That's because the symbol for +
is treated as white space by your browser or HTTP client! If you want to actually send the symbol +
in your get request, please encode it first in your web browser.
You can try converting your C++
with tools such as this one https://www.w3schools.com/tags/ref_urlencode.ASP.
Upvotes: 2