Please help me with this, i want to open the picture in a new page, i created download.php and i want this picture to be open in "download.php" page.. This is the code: if ($Wallpaper1 != NULL) { $size=''; $size=getimagesize("images/wallpapers/".$Wallpaper1); if ($Settings['Enable_Watermark'] == '1') { $dHTML .= '<a href="'.$image_path.'images/wmwallpapers/'.str_replace(" ","-",$Title).'-1.jpeg" title= "Games Wallpapers" style="text-decoration: underline;">'.$size[0].'x'.$size[1].'</a> '; Thanks
Add this to the end of your link code (<a href="..." ... THIS>) target="_blank" So it should read as follows: $dHTML .= '<a href="'.$image_path.'images/wmwallpapers/'.str_replace(" ","-",$Title).'-1.jpeg" title= "Games Wallpapers" style="text-decoration: underline;" target="_blank">'.$size[0].'x'.$size[1].'</a> '; Code (markup): Regards, Dennis M.
I just did this class for images inside links, it might be useful. Just edit the variables values. http://forums.digitalpoint.com/showthread.php?t=1552299
I know the part wiht target blang, i want the picture to be opene in another page like www.website.com/picture.jpg i want to be www.website.com/download.php or view.php Regards and thanks for the quick answers
depending on the image file's location you can $_GET the file path and display it that way e.g. download.php?img=picture.jpg if it's in the same folder as download.php. but it's better to do it via a db where you would use and id instead, such as download.php?id=0001 etc.