by David Dorward <dorward@[EMAIL PROTECTED]
>
Jan 2, 2006 at 07:54 PM
jon wrote:
> Can anyone show me what type of html and php codes are need to have a
user
> click on the graphics and then it will open a php file.
A regular link with an image in it.
> I tried the followings
> 1)<tr><td><a href="http://www.test.com/test/rss.php"><img
border="0"
> src="images/buttons/rss.gif" alt=""></a></td><td><a href="test/">test
> Blog</a></td></tr>
alt=""? That doesn't look like a very good alternative to an image that is
the only content of a link. Based on the filename I'm guessing you have an
RSS button (a graphic with the letters RSS on it), in which case the value
of the alt attribute should be "RSS".
> 2)<a href="http://www.test/com/forum/rss.php"
target="_blank">
Foisting new windows on users isn't a very good idea. Its difficult to
override, and isn't always noticed (why isn't my back button working?)
> <img
> src="feed-7.gif" width="48" height="13" border="0" align="absmiddle">
The alt attribute is mandatory. http://validator.w3.org/
is your friend.
> I always got the following error. The error I get is Parse error: parse
> error, unexpected T_STRING in /home/tttttt/public/newsfeed/rss.php on
line
> 1
Your problem is caused by an error in the PHP (which you haven't shown
us),
not the HTML.
--
David Dorward <http://blog.dorward.me.uk/>
<http://dorward.me.uk/>
Home is where the ~/.bashrc is