Page 1 of 1

href in php

Posted: Thu Aug 20, 2009 12:44 am
by yasir_memon
can i use

<a href=" ">name</a>

in php i want to give reference on image icon so if it is possible kindly tell me how can i do this

Re: href in php

Posted: Thu Aug 20, 2009 1:08 am
by mrvijayakumar
R u asking like this?,

Code: Select all

<?php
echo "<a href='imagename.jpg'>image name</a>";
?>

Re: href in php

Posted: Thu Aug 20, 2009 8:28 am
by Ollie Saunders
An image:

Code: Select all

<img src="image filename" />
A hyperlink:

Code: Select all

<a href="to where">stuff in here</a>
Thus, a hyperlinked image:

Code: Select all

<a href="to where"><img src="image filename" /></a>
Any basic tutorial/book on HTML, which are numerous online, will cover this in greater depth. Good luck!