Forum Moderators: coopster

Message Too Old, No Replies

changing an image for text/hyperlink

         

marcus76

4:50 pm on Nov 27, 2005 (gmt 0)

10+ Year Member



Hi,

I have the following piece of code, which uses an image as a button. I want to remove the image and just have some text/hyperlink which has the same effect when clicked? Would someone please help and advise what needs to be changed...

<?php echo tep_image_submit('button_wishlist.gif', 'Add to Wishlist', 'name="wishlist" value="wishlist"');?>

Many thanks for your help

Marcus

Anyango

5:58 pm on Nov 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Marcus.

as you know you are calling this function

tep_image_submit()

for creating your hyperlink, so you would either need to remove that function call and echo it in html or you ll need to edit that function.

marcus76

6:40 pm on Nov 27, 2005 (gmt 0)

10+ Year Member



hi, thanks for the help. Still i have no clue how to do this i'm afraid..very new to PHP..I need the hyperlink to still call the function..so just replace the 'button_wishlist.gif' for a hyperlink should do the trick..

Anyango

6:43 pm on Nov 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



then you can try

<?php echo tep_image_submit('', 'Add to Wishlist', 'name="wishlist" value="wishlist"');?>

but that might only remove the image but won't show any text either, and there will be nothing to click on. can you paste here that function?

tep_image_submit()

?

Anyango

6:47 pm on Nov 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



replacing

'button_wishlist.gif'

with some text won't work, beause your function definitely expects that parameter to be a valid filename and not some text.

that function anyway needs to be editted.