On Dec 20, 2001 at 04:33 -0800, K.L. Hayes took the soap box and proclaimed: : Hello All, : : Could somebody please help me with this? : : print "Location: :https://secure.whatever.com/business=email\@address.com\&item_name=Product+Name\&item_number=QX000\&amount=$total_amount\&shipping=0.00\&return=https://blah.com/ty.html\n\n"; : : I'm trying to interpolate the $total_amount in the above URL while : escaping the other special characters. I've never tried to do this : before & just can't wrap my ears around it now when I need to.
That is one huge line! I'm going to break it up into sereral lines for readability: print 'Location: https://secure.whatever.com/' . '[EMAIL PROTECTED]&item_name=Product+Name&' . 'item_number=QX000&amount=' . $total_amount . '&' . 'shipping=0.00&return=https://blah.com/ty.html' . "\n\n"; Ok, so it's not very readable but, what I'm doing is concatinating *uninterpolated* strings together and, when there is a variable, I interpolate it explicitly. It's just one way to do it. Casey West -- "Drill for oil? You mean drill into the ground to try and find oil? You're crazy." -- Drillers who Edwin L. Drake tried to enlist to his project to drill for oil in 1859. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]