Ok so I have a file that I do NOT want to be accessed unless it is in an iframe. Like the main page has a frame that changes from page to page depending on whatever menu button is clicked. One of the pages I only want to be accessed in that fashion, otherwise i want the user to get an error message. Like
main.php = full page, has iframe of fight.php
fight.php = page i do not want accessed if it is not included in main.php
i tried doing this:
in main.php:
in fight.php at the top:Code:$check='1';
<iframe src=\"fight.php\" id=\"frame\"></iframe>
Is there any way I can make this happen? (Obviously what I tried didnt work or i wouldnt be asking =p)Code:if(!$check){
echo "Error.";
exit;
}