> -----Original Message----- > From: K.L. Hayes [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 20, 2001 7:34 PM > To: [EMAIL PROTECTED] > Subject: Interpolate in Location: > > > Hello All, > > Could somebody please help me with this? > > <CODE> > print "Location: > https://secure.whatever.com/business=email\@address.com\&item_ > name=Product+Name\&item_number=QX000\&amount=$total_amount\&sh > ipping=0.00\&return=https://blah.com/ty.html\n\n"; > </CODE> > > 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.
As Michael said, your code looks OK. The &'s don't need to be escaped. When you construct a URL, you should run it through URI::Escape's uri_escape() method to encode any URI-special chars. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]