Ombeni Nade
Ombeni Nade

Reputation: 75

Getting C++ As Parameter Value, Result Only C By Using Php

test.php?aa=c++ and echo $_GET['aa'] result only c without ++

<?php
    echo $_GET['aa'];
 ?>

Upvotes: -4

Views: 74

Answers (1)

Tengku Izdihar
Tengku Izdihar

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

Related Questions