Making PHP-generated image URLs clickable links

  • Context: PHP 
  • Thread starter Thread starter pattersonz
  • Start date Start date
  • Tags Tags
    Code Php
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
pattersonz
Messages
1
Reaction score
0
Ok here is the code below, I need to know what I need to change in this code for it to be able to be a clickable link... I have many layouts and want to add more but with so many pages, its a bit hard to go through 49 pages just to add one page. I already submitted this problem to web design company but have yet to get any solution. So here is the code. I hope someone can help me!

<img src="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $img_url . "/" . $imgpath . $file; ?>" alt="<?php echo $file; ?>" width="250" ><br>
<textarea name="textarea2" cols=23 rows=7 onClick="this.focus();this.sel...
<a href="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $site_url; ?>" target="_blank" title="<?php echo $urlpath . $file; ?>">
<img src="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $img_url . "/" . $imgpath . $file; ?>" border="0" alt="<?php echo $urlpath . $file; ?>"></a>
<?php if ($support_image != "") { ?>
<img src="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $support_image; ?>" alt="Myspace Editors" style="position:absolute; left:0px; top: 0px;" border="0"></a>
<?php } ?>
<a href="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $site_url; ?>/" target="_blank" title="Myspace Images">This image is from <?php echo $site_name; ?></a></center></textarea>
 
Last edited by a moderator:
Physics news on Phys.org
If possible post the html generated by your php page, or a link. I see multiple links, invalid HTML (i.e. this.sel...) and only a sub portion of the HTML document, etc.
All of this makes your question fairly ambiguous. Why don't you provide as much information as you can, it's very frustrating otherwise.