Using an Image as a Link

runza

Member
hie

http://association-pour-tous.fr/gerontologie/index.php/liste-site-amies

i try get an Image as a Link
from two element
an upload element and a link element

the user upload this image and record the link of this site

i find the solution to have a calc element and get a formula to return
a result like this <a href="http://www.pageresource.com">
<img src="next.jpg" />


$image = '{site_amis___image1}';
$link = '{site_amis___lien}';
return "<a href="".$image.""><img src="".$link";

i try without success

best regard
philippe
 
Try
Code:
$image = '{site_amis___image1}';
$link = '{site_amis___lien}';
$a= '<a href="'.$link.'"><img src="'.$image.'"/>"';
var_dump($a);exit;//to see what you get
return $a;
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top