Page 1 of 1

links not displaying in FireFox <SOLVED>

Posted: Wed Oct 17, 2007 8:16 am
by PastorHank
On one of my sites I have a script that pulls info from a table and if there is a web address it displays it
first I build the complete address

Code: Select all

$webfront='http://';
 	$finalwebaddress=$webfront.$webaddress;
then in the proper place I put

Code: Select all

echo "<tr>\n
 		<td align='right' bgcolor='#DEB887' width='50'><b>Web</b></td>
 		<td align='left'><a target='_blank' href='$finalwebaddress'</a>$webaddress</td>
 		</tr>";
In IE everything works properly - the link is active, when you click on the link it opens in a new page etc. however, in FireFox the link shows up as a plain text line.

I've tried posting this problem on the Mozilla forums but so far no answers or ideas, does anyone here have a possible solution?

TIA

Posted: Wed Oct 17, 2007 8:21 am
by s.dot
Shouldn't it be:

Code: Select all

echo "<tr>\n
               <td align='right' bgcolor='#DEB887' width='50'><b>Web</b></td>
               <td align='left'><a target='_blank' href='$finalwebaddress'>$webaddress</a></td>
               </tr>";

Posted: Wed Oct 17, 2007 8:31 am
by PastorHank
Yes, that was it....

Thank you

Posted: Wed Oct 17, 2007 10:25 am
by Zoxive
PastorHank wrote:Yes, that was it....

Thank you
For future reference you were outputting invalid HTML.

Code: Select all

<a target='_blank' href='http://www.google.com'</a>google

Posted: Wed Oct 17, 2007 11:16 am
by PastorHank
Yes I realize that, hence my thanks to scottayy and my putting solved at the topic line.