Author Topic: Incorrect URL when klicking on the button  (Read 2003 times)

0 Members and 1 Guest are viewing this topic.

computer123

  • Guest
Incorrect URL when klicking on the button
« on: August 12, 2007, 11:42:18 PM »
Hello,

I have just added a extra button into the details page (View image) and everything is working fine, but I have a small problem:

When I klick on the button to go for exmple to the website www.google.com I get a wrong URL: http://www.mysite.com/www.google.com.

What do I have to change into those lines in Functions.php to get the right URL?


Quote
$image_flash = $image_row['image_flash'];

if ($image_flash == "") {

   $flash_button = "<img src=\"".get_gallery_image("download_flash_uit.gif")."\" border=\"0\" alt=\"\" />";
  }
  else {
 
    $flash_button = "<a href=\"".$image_row['image_flash']."\"><img src=\"".get_gallery_image("download_flash_aan.gif")."\" border=\"0\" alt=\"".$lang['alt_flash']."\"/></a>";
  }


Thank you in advance for any help,

SZ