Forum Moderators: open
I found this code:
<html>
<head>
<title>Put Your Website Title Here</title>
<meta name="keywords" content="Put Your Keywords Here">
<style>
* {margin:0; padding:0;}
</style>
</head>
<body>
<?
$urls = array(
"http://affiliatelinkaddress1.com",
"http://affiliatelinkaddress2.com",
"http://affiliatelinkaddress3.com",
"http://affiliatelinkaddress4.com");
$url = $urls[array_rand($urls)];
echo '<iframe style="margin:0; padding:0; border:0;" src='.$url.' width=100% height=100% frameborder=no></iframe>';
?>
</body>
</html>
But some thing's wrong with it. When I load the page I just get an empty page with:
'; ?>
That's all I see.
What I'm trying to get it to do is randomly redirect people to different landing pages so I can see which performs best.
Also, should this be a .php file or does it not matter?
Thanks all!
<html>
<head>
<title>Put Your Website Title Here</title>
<meta name="keywords" content="Put Your Keywords Here">
<style>
* {margin:0; padding:0;}
</style>
</head>
<body>
<?php
$urls = array(
"http://affiliatelinkaddress1.com",
"http://affiliatelinkaddress2.com",
"http://affiliatelinkaddress3.com",
"http://affiliatelinkaddress4.com");
$url = $urls[array_rand($urls)];
echo '<iframe style="margin:0; padding:0; border:0;" src='.$url.' width=100% height=100% frameborder=no></iframe>';
?>
</body>
</html>
but I still get '; ?> when I preview the page. It's a .php file too.
Any other suggestions that might help?
I'm basically trying to iframe but also rotate the landing pages in the iframe to see which converts better.
Thanks!