eternalwarrior
Senior Member
- Oct 7, 2012
- 1,010
- 397
How do I get URL parameter from redirect URL?
Like the redirect url here is
a-domain.com/tracking/go.php?c=variables&s={keyword} which will be
redirected to b-domain.com/landing-page.php
I want the parameter of the redirect URL "{keyword}" to be received by the final page and show it up in b-domain.com/landing-page.php
I have used the following code in b-domain.com/landing-page.php:
<?php
$target = $_GET['s'];
?>
<h1>Welcome <?php echo $target; ?> Visitors!!!</h1>
But it's not working. Can anyone help me in this?
Like the redirect url here is
a-domain.com/tracking/go.php?c=variables&s={keyword} which will be
redirected to b-domain.com/landing-page.php
I want the parameter of the redirect URL "{keyword}" to be received by the final page and show it up in b-domain.com/landing-page.php
I have used the following code in b-domain.com/landing-page.php:
<?php
$target = $_GET['s'];
?>
<h1>Welcome <?php echo $target; ?> Visitors!!!</h1>
But it's not working. Can anyone help me in this?
Last edited: