links not displaying in FireFox <SOLVED>

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

links not displaying in FireFox <SOLVED>

Post 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
Last edited by PastorHank on Wed Oct 17, 2007 8:33 am, edited 1 time in total.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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>";
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

Post by PastorHank »

Yes, that was it....

Thank you
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post 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
PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

Post by PastorHank »

Yes I realize that, hence my thanks to scottayy and my putting solved at the topic line.
Post Reply