Announcement

Collapse
No announcement yet.

urlencode() ????

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    urlencode() ????

    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

    #2
    I see some typos. Try
    Code:
    <a href="javascript:;" onclick="MM_openBrWindow('bestprice.php?product=' + urlencode('<actinic:variable name="ProductName" encoding="perl" selectable="false" />'),'','width=500,height=350')"><img src="best_price_enquiry.gif" width="177" height="19" border="0" /></a>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X