I am able to send traffic from my ad, to a page on my own website, which then automatically redirects to an offer.
I did that by setting the destination URL of the ad to
which contains the following code:
Now I want to be able to pass a variable through that redirect but I can't figure out how. Here's what I've tried....
I set the destination URL of my ad to
And that page contains the following code:
I've tried a few variations on that and nothing is working. "cataclysmic" never gets through to the final page, or I get various error messages. Can anyone tell me how to do what I'm trying to do?
Thanks.
I did that by setting the destination URL of the ad to
http:// mywebsite.com/testpage.php
which contains the following code:
<?php
header( 'Location: http:// ww w.finalwebsite. com/testpage.php' ) ;
?>
That worked fine.header( 'Location: http:// ww w.finalwebsite. com/testpage.php' ) ;
?>
Now I want to be able to pass a variable through that redirect but I can't figure out how. Here's what I've tried....
I set the destination URL of my ad to
http:// mywebsite.com/testpage.php?variable=cataclysmic
And that page contains the following code:
<?php
$variable = $_GET['variable'];
header( 'Location: http:// ww w.finalwebsite. com/testpage.php?variable= echo $variable; ' ) ;
?>
$variable = $_GET['variable'];
header( 'Location: http:// ww w.finalwebsite. com/testpage.php?variable= echo $variable; ' ) ;
?>
I've tried a few variations on that and nothing is working. "cataclysmic" never gets through to the final page, or I get various error messages. Can anyone tell me how to do what I'm trying to do?
Thanks.