Page 1 of 1

Picture and link tie together (in PHP)

Posted: Mon 03 Sep 2012 4:00 pm
by Lefuet
Hello, weather municipality! I would need your help, I have a picture and would like to add a link to this picture that if I on the picture I click to this address is passed on! in PHP! If this has not tried here, however, functioned:

?>

<div id="main-copy">
<center><h1><?php langtrans('Mitglied bei ...'); ?></h1>

<p>a href=http://www.awekas.at/de/instrument.php?id=9126"><img src="http://www.awekas.at/images/awekas-b1.gif" /></p></center>

</div><!-- end main-copy -->

<?php

Re: Picture and link tie together (in PHP)

Posted: Mon 03 Sep 2012 4:42 pm
by steve
I don't know how to make this work specifically in the situation that you have, but your 'anchor' tag (the link) is not formed correctly.

This line:

<p>a href=http://www.awekas.at/de/instrument.php?id=9126"><img src="http://www.awekas.at/images/awekas-b1.gif" /></p></center>

needs to be

<p><a href=http://www.awekas.at/de/instrument.php?id=9126"><img src="http://www.awekas.at/images/awekas-b1.gif" /></a></p></center>