I had an iframe working for the last few months on a site at hostgator. Yesterday, it quit working (403 permissions error). After a long bout of trouble-shooting, I found out that it has something to do with mod_security that they have suddenly enabled (have no idea as I'm not a Linux guy).
They told me they fixed the problem on my domain by whitelisting it as an exception, but strangely, even though the permissions error went away, the actual src= box of the iframe, which was the url variable I was passing in the url, no longer loads.
So.. I'm trying to break this down into the simplest form to figure it out. I just understand php basics so needing some verification that I'm doing this right/wrong.
Here's my code..
page1.php
<? $testurl = "http://google.com"; ?>
<a href="http://mysite.blah/page2.php?url=<? echo $testurl; ?>">page2.php</a>
page2.php
if (isset($_GET['testurl'])) echo $testurl;
else echo "sorry dude";
I am only able to print "sorry dude".
Am I doing something wrong or shouldn't this send the url?
Thanks for the help!