My code is below. The URL shortening service works, but it doesn\'t when I insert my $POST. Does anyone know how to fix this my looking at the code?
$POST
you are passing the php variable between the single quotes so it will not be parsed. pass it between double quotes like
$longUrl = "http://www.mysite.com/XXXXX/XX/$_POST['qrname']";
OR concatinate like this
$longUrl = 'http://www.mysite.com/XXXXX/XX/'.$_POST['qrname'];