Hi
I'm trying to use the urlencode() to send the product name (ProductName variable) to prepopulate a form field. I've tried the following line:
<a href="javascript:;" onclick="MM_openBrWindow('bestprice.php?product=urlencode(<actinic:variable name="ProductName" />),'','width=500,height=350')"><img src="best_price_enquiry.gif" width="177" height="19" border="0" /></a>
But this simply return this:
urlencode(Leather Carry Case
The reason for me wanting to use the urlencode is that some of the product names have characters such as & + etc
Hope someone can help out with this one.
Cheers
Andy
I'm trying to use the urlencode() to send the product name (ProductName variable) to prepopulate a form field. I've tried the following line:
<a href="javascript:;" onclick="MM_openBrWindow('bestprice.php?product=urlencode(<actinic:variable name="ProductName" />),'','width=500,height=350')"><img src="best_price_enquiry.gif" width="177" height="19" border="0" /></a>
But this simply return this:
urlencode(Leather Carry Case
The reason for me wanting to use the urlencode is that some of the product names have characters such as & + etc
Hope someone can help out with this one.
Cheers
Andy
Comment