I am a complete beginner at php, but I would like to try and incorporate some code into my site. I need to let people know when they leave a particular site, so any off site link I post will have the URL "leaving.php?direct=(URLHERE)" I enter that, but I need to make the Leaving.php file, and I need to know how to bring the url to the page. Leaving.php: <body> <p> you are leaving the website, and about to be directed to (URLHERE), do you want to proceed?<br /> <a href="(URLHERE)" >Procede</a> Go back </p> </body> Code (markup): Please Help! Thanks
$_GET['direct'] will be carrying the value <body> <p> you are leaving the website, and about to be directed to <?php echo $_GET['direct']; ?>, do you want to proceed?<br /> <a href="<?php echo $_GET['direct']; ?>" >Proceed</a> Go back </p> </body> PHP: