|
Author |
Message |
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Mon Dec 30, 2002 11:06 pm (21 years, 3 months ago) |
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Tue Dec 31, 2002 2:58 pm (21 years, 3 months ago) |
|
just assuming you want a script that opens a frame with that URL in it, you could simply write:
Code: |
<html>
...
<frame src="<?php print $url; ?>" ..>
...
</html>
|
and visit page.php?url=http://somesite.com/
You may want to add some error checking measures, but that would work. |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Jan 03, 2003 9:46 am (21 years, 3 months ago) |
|
Hi,
You might want to be careful about the legal implications of such a script, if you're linking to big sites. If a lot of people click on your links, these sites may get very annoyed at you having an advertising frame above their site.
Also, you should replace $url with $_GET['url'] |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Jan 03, 2003 7:20 pm (21 years, 3 months ago) |
|
Daniel wrote: | Also, you should replace $url with $_GET['url'] |
why? |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Jan 03, 2003 8:33 pm (21 years, 3 months ago) |
|
In the latest versions of PHP, importing of variables from the query string isn't done by default, so $url wouldn't exist. Only $_GET['url'] would. It's just a good habit to get into (just like coding properly - indentation, spacing, etc...). |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Jan 03, 2003 8:40 pm (21 years, 3 months ago) |
|
oh, I didn't know that...hmm, that explains a problem I ran into a little while ago... |
________________________________ It's turtles all the way down... |
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.240664 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |