Page 1 of 1

Open New Window _Blank

Posted: Wed Apr 28, 2010 10:52 am
by dave7802
Hello,

Quick Question if someone can help

Code: Select all

        echo "</td><td align='left'><a href='http://bfbcs.com/stats_ps3/". $player['name']."'> ";
How the hell does the target=_blank work in this situation,

I have had a quick go with Javascript, but am unable to edit this correctly to get the target="_blank"
To Operate Correctly

Thanks

Re: Open New Window _Blank

Posted: Wed Apr 28, 2010 11:07 am
by TheBrandon

Code: Select all

echo '</td><td align="left"><a href="http://bfbcs.com/stats_ps3/'.$player['name'].'" target="_blank">';
Try that.

Re: Open New Window _Blank

Posted: Wed Apr 28, 2010 11:17 am
by dave7802
Thank you very much

Looking at my attempt, it was a Very stupid error!!

Code: Select all

echo '</td><td align="left"><a href="http://bfbcs.com/stats_ps3/'.$player['name']."' target="_blank">';
I got my " and ' the wrong way around!

Thanks :-) lol

Re: Open New Window _Blank

Posted: Wed Apr 28, 2010 12:03 pm
by TheBrandon
No problem. I still make that mistake all the time. I find it's easier to always use ' with echo statements because it helps keep the HTML syntax (which mainly uses ") separate.

Re: Open New Window _Blank

Posted: Wed Apr 28, 2010 4:05 pm
by Jonah Bron
Plus single quotes are faster :mrgreen: