Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Tags > Re: Help create...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 386 of 439
Post > Topic >>

Re: Help create a tag that will open a php file

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




 6 Posts in Topic:
Help create a tag that will open a php file
"jon" <jon@[  2006-01-02 17:47:48 
Re: Help create a tag that will open a php file
David Dorward <dorward  2006-01-02 19:54:39 
Re: Help create a tag that will open a php file
"jon" <jon@[  2006-01-02 21:56:58 
Re: Help create a tag that will open a php file
"--Fred--" <  2006-01-04 16:32:48 
Re: Help create a tag that will open a php file
"Jim Michaels"   2006-02-04 00:25:27 
Re: Help create a tag that will open a php file
"Jim Michaels"   2006-02-04 00:20:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 5:37:45 CDT 2008.