I'm using XAMPP and have a php site that should print out the input passed by GET. The URL looks like http://127.0.0.1/profile.php?id=643bqmxf9rj62
.
In the php file I have this code:
$accId= $_GET['id'];
echo "accId = " + $accIdd;
What gets printed is simply
643
, without the accId =
. Anything after the first character that isn't a digit gets cut off.
When I pass bqmxf9rj62
in the URL without numbers in front, my script prints 0
.
I have made websites before but I can't figure out why this is happening.