[SOLVED] Help - Image instead of text

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mhouldridge
Forum Contributor
Posts: 267
Joined: Wed Jan 26, 2005 5:13 am

[SOLVED] Help - Image instead of text

Post by mhouldridge »

Hi,

I have the following code which outputs delete text as a link with with variable.

Code: Select all

<TD><a href='deleteget.php?varl=".$row['asset']."'>Delete</a></TD>
I need the Delete text replacing with an image however I do not know how to do this.

Please help!
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Code: Select all

<img src="imagename.ext" height="??" width="??" alt="Delete" />
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Code: Select all

<TD><a href='deleteget.php?varl=".$row['asset']."'><img src=\"imagename.ext\" alt=\"Delete\" /></a></TD>
User avatar
mhouldridge
Forum Contributor
Posts: 267
Joined: Wed Jan 26, 2005 5:13 am

Post by mhouldridge »

thanks guys, thats sorted it!!!
Post Reply