Web Hosting Talk







View Full Version : Just need a single code.


roguetide
07-12-2006, 11:14 AM
What is the code to create hyperlink images on PHP?

Any help is apprieciated.

the_pm
07-12-2006, 11:21 AM
PHP would be used to generate the HTML that gets displayed on the page. So the code wouldn't be any different than regular HTML code, inserted in whatever manner your PHP script requires (probably using echo or print).

roguetide
07-12-2006, 11:23 AM
Well, i've been trying

<a sref=http.... etc

It doesn't work, so what now? What would code would you use?

Sorry to be a n00b :P

wake
07-12-2006, 01:15 PM
<a href="link"><img src="image"></a>

Embed it into PHP with echo.
Make Google your friend.

the_pm
07-12-2006, 01:21 PM
<a href="link"><img src="image"></a>

Embed it into PHP with echo.
Make Google your friend.
Yep. 'sref' doesn't mean anything. There's your problem :)

roguetide
07-13-2006, 08:43 AM
I seee :) I looked on google for it, but it was mostly for use in frontpage etc.

Thanks guys.