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
replace $longUrl = 'http://www.example.com/XXXXX/XX/$_POST['qrname']';
$longUrl = 'http://www.example.com/XXXXX/XX/$_POST['qrname']';
with the following
$longUrl = 'http://www.example.com/XXXXX/XX/{$_POST['qrname']}';