Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html style="height:100%;margin:0px;padding:0px;overflow:hidden">
- <body style="height:100%;margin:0px;padding:0px;overflow:hidden">
- </body>
- <?php
- if($_SERVER["REQUEST_METHOD"] == "POST"){
- $site = $_POST["site"];
- if(!empty($site)){
- echo $site;
- echo '<iframe src="' . stripslashes($site) . '" style="width: 100%; height: 100%;"> </iframe>';
- if(empty($site)){
- echo "<form action=\"test.php\" method=\"post\"> \n
- Site: <input type=\"text\" name=\"site\"><br> \n
- <input type=\"submit\"> \n
- </form>
- ";
- };
- }else{
- echo '<font color="red">Error: illegal site name!</font>';
- };
- }elseif($_SERVER["REQUEST_METHOD"] == "GET"){
- $site = $_POST["site"];
- if(empty($site)){
- echo '<iframe src="' . stripslashes($site) . '" frameborder="0" style="overflow:hidden;height:100%;width:100%" height="100%" width="100%"> </iframe>';
- }else{ //3
- echo '<font color="red">Error: illegal site name!</font>';
- };
- };
- if(empty($site)){
- echo "<form action=\"test.php\" method=\"post\"> \n
- Site: <input type=\"text\" name=\"site\"><br> \n
- <input type=\"submit\"> \n
- </form>
- ";
- };
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment