Jump to content

Recommended Posts

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
Link to comment
https://forums.phpfreaks.com/topic/6806-whats-wrong-with-my-code/
Share on other sites

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>";
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.