Re: URL parsing, help
- From: Rhialto <Rhialto@xxxxxxxxx>
- Date: Thu, 27 Nov 2008 16:29:03 -0800 (PST)
On 27 nov, 19:05, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
Rhialto wrote:
With a lot of search in Google I made it in JS but there is a part I'd
like to be in PHP and I can't find how to do it.
From a page that usually display in a frame I have this JS :
if (self == top) { top.location.href="/index.php?url=test.php"; }
Now you may have guessed what I'm trying to do, load the top page but
with the frame I passed in the URL
I successfully achieved my goal with JS but I think it would be nice
using PHP.
How can I extract only "test.php" from the URL so I can:
<?php echo "<iframe src=\'" + url + "'>" ?>
Thanks
Look at the $_GET superglobal.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================
Found it, thanks for the clue!
.
- Follow-Ups:
- Re: URL parsing, help
- From: Rhialto
- Re: URL parsing, help
- References:
- URL parsing, help
- From: Rhialto
- Re: URL parsing, help
- From: Jerry Stuckle
- URL parsing, help
- Prev by Date: Re: URL parsing, help
- Next by Date: Re: URL parsing, help
- Previous by thread: Re: URL parsing, help
- Next by thread: Re: URL parsing, help
- Index(es):
Relevant Pages
|