Page 1 of 1

How can i fix this?

Posted: Fri Mar 09, 2007 3:14 pm
by Maluendaster
I have a site that links to other sites, what i'm trying to do, is when the user clicks the link, it open the other site but with a frame so it doesn't leave my site (kind of like hotmail when you click a link in a mail) .. I have this

index.php
the links are like this :

Code: Select all

link.php?url=http://fmshaon.blogspot.com/2007/01/even-windows-xp-fears-president-bush.html
link.php

Code: Select all

<FRAMESET ROWS="38,*" cols="*">
<FRAME NAME="arriba" SRC="up.php" MARGINWIDTH="10" MARGINHEIGHT="10" SCROLLING="no" FRAMEBORDER="0">
<FRAME NAME="abajo" SRC="<?php echo $url ?>" MARGINWIDTH="10" MARGINHEIGHT="10" SCROLLING="auto" FRAMEBORDER="0">
</FRAMESET>
thank you.

Posted: Fri Mar 09, 2007 3:32 pm
by RobertGonzalez
Have you tried it? Is register_globals on (which it should not be)?

Posted: Fri Mar 09, 2007 5:04 pm
by Maluendaster
Everah wrote:Have you tried it? Is register_globals on (which it should not be)?
register_globals is off... i tried both ways and it doesnt work...

Posted: Fri Mar 09, 2007 5:51 pm
by RobertGonzalez
Does the frame layout work without the dynamic addition? I mean, can you do this...

Code: Select all

<FRAMESET ROWS="38,*" cols="*"> 
<FRAME NAME="arriba" SRC="up.php" MARGINWIDTH="10" MARGINHEIGHT="10" SCROLLING="no" FRAMEBORDER="0"> 
<FRAME NAME="abajo" SRC="http://fmshaon.blogspot.com/2007/01/even-windows-xp-fears-president-bush.html" MARGINWIDTH="10" MARGINHEIGHT="10" SCROLLING="auto" FRAMEBORDER="0"> 
</FRAMESET>
Also, have you looked at urlencode() and urldecode()?

Posted: Fri Mar 09, 2007 9:14 pm
by Dale
So you've tried it using

Code: Select all

$_GET[url];
aswell ??

Posted: Fri Mar 09, 2007 9:23 pm
by aaronhall

Code: Select all

<a href="link.php?url=http://www.somesite.com" target="abajo">link will open link.php in frame named "abajo", and redirect to somesite.com</a>