Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 02-06-2010, 08:28 AM Help for a newbie
Junior Talker

Posts: 2
Name: John
Trades: 0
Hi all, I don't know much about php and need some advice on how to put in target="_blank" in this piece of code.

I've figured out that the category 77 is for outside links, but everytime I insert target blank I kill my page.

Could someone place the target="_blank" in this so I can see what I'm doing wrong.

Thank you very much.

if ($gamelocation == 1 || $filetype == 77)
$gamefile = $gamefile;
else
$gamefile = $base_url."games/files/".$gamefile;

if ($filetype != 77){
if ($hotlink == 1 && $rewrite ==1 && $filetype < 3)
$gamefile = $base_url."content/".$gameid."/".$_SESSION['playcode'];
elseif ($hotlink == 1 && $rewrite ==0)
$gamefile = $base_url."viewgame.php?gameid=".$gameid."&code=". $_SESSION['playcode'];
}
sp3146 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-06-2010, 08:52 AM Re: Help for a newbie
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
nowhere in that code.


You need wherever <a href= is written out.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 02-06-2010 at 09:40 AM..
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-06-2010, 09:00 AM Re: Help for a newbie
Junior Talker

Posts: 2
Name: John
Trades: 0
Thanks chrishirst, I'll look around for that...still learning this script...lol
sp3146 is offline
Reply With Quote
View Public Profile
 
Old 02-06-2010, 09:50 AM Re: Help for a newbie
Novice Talker

Posts: 5
Trades: 0
Yeah, add a <a href="link.php">Name</a>
Nemessis is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help for a newbie
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20841 seconds with 12 queries