So, this is a link I have on a page (page1.php):
Code: [Select]
On page2.php I have something like this:
Code: [Select]
It works perfectly (displays "You've gone through the hoops" only if users passes through page1). The problem is that instead of that line of text I should display a complex page (mixed php and html): http://pastebin.com/XQdw64hB
How can I insert that page within that if (isset($_GET['t']) && $_GET['t'] ..?
P.S.: don't blame me for $_GET being spoof-able.. informations in page2 aren't state secrets.. no one would be interested in spoofing it! :D
<a href="page2.php?t=<?php echo md5($_SERVER['REMOTE_ADDR']); ?>">Click here</a>On page2.php I have something like this:
<?php
if (isset($_GET['t']) && $_GET['t'] == md5($_SERVER['REMOTE_ADDR'])) {
echo 'You\'ve gone through the hoops';
}
else echo 'Please go back to page1';
?>
It works perfectly (displays "You've gone through the hoops" only if users passes through page1). The problem is that instead of that line of text I should display a complex page (mixed php and html): http://pastebin.com/XQdw64hB
How can I insert that page within that if (isset($_GET['t']) && $_GET['t'] ..?
P.S.: don't blame me for $_GET being spoof-able.. informations in page2 aren't state secrets.. no one would be interested in spoofing it! :D




