Jump to content


Photo

Whats wrong with my code?


  • Please log in to reply
1 reply to this topic

#1 ltempest

ltempest
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 07 April 2006 - 01:47 PM

HELP!
I'm trying to cobble together a free 'email this page' code into my Joomla Virtuemart page. I can get the icon displayed but cannot get is to process the popup window for the user to enter his email address.

echo "<td><a href=\"javascript:popUp('$mosConfig_live_site/emailpage/friend.php?id=".$PHP_SELF."\"><img src=\"http://www.oec4x4.com/images/M_images/emailButton.png\" width=\"32\" height=\"32\" alt=\"\" align=\"middle\" name=\"PDF\" border=\"0\" /></a></td>";

I think the problem lies in the id=".$PHP_SELF."\" part. I need this to be a variable as this icon will appear on different pages so the page id will differ.

Can anyone help?

Thanks

Lee

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 07 April 2006 - 01:50 PM

try

echo "<td><a href=\"javascript:popUp('" . $mosConfig_live_site . "/emailpage/friend.php?id=".$PHP_SELF."\"><img src=\"http://www.oec4x4.com/images/M_images/emailButton.png\" width=\"32\" height=\"32\" alt=\"\" align=\"middle\" name=\"PDF\" border=\"0\" /></a></td>";

follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users