/    Sign up×
Community /Pin to ProfileBookmark

outgoinglink

Hi,

I have a problem with my outgoinglink.php

Here my code

[CODE]<?php

//default url if none is set
$nourl = “http://www.test.com/”;

$url=$_GET[“url”];
if(!$url)
{
$url=$nourl;
}
?>
<html>
<head>
<title>Test</title>
</head>

<frameset rows=”132px,*” frameborder=”NO” border=”0″ framespacing=”0″>
<frame src=”frame.php?url=<?php echo”$url” ?>” name=”frame” scrolling=”NO” noresize>
<frame src=”<?php echo “$url”; ?>” name=”main”>
</frameset>
<noframes>
<body>

</body>
</noframes>
</html> [/CODE]

And the frame.php

[CODE]<head>
<meta http-equiv=”Content-Language” content=”pt”>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>frame</title>
<a target=”_blank” href=”http://www.test.com/out.php?url=<?php print $link ?>” title=”<?php print $title ?>”><?php print $title ?></a>
</head>[/CODE]

When I clinck on link on my webpage it goes [url]http://www.test.com/out.php?url=[/url] ……. Its Ok. But the problem is when I return ( I have a link to ‘home’ in frame.php) when I click on home instead of [url]www.test.com[/url] gives me [url]http://www.test.com/out.php?url=[/url]… My blog iserted in a frame.

Already try

[CODE]<INPUT TYPE=”button” VALUE=”Back” onClick=”history.go(-1);”> [/CODE]

and dose´t work alway same result.
I need [url]http://www.test.com[/url] and not [url]http://www.test.com/out.php?url=[/url]

Can you help me please?

Thank you,
RAN

to post a comment
Full-stack Developer

0Be the first to comment 😎

×

Success!

Help @RAN spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...