bu2chlc

javascript/php redirect

Nov 30th, 2020
394
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>Document</title>
  7. </head>
  8. <body>
  9.     <h1>test</h1>
  10.     <?php
  11.  
  12.     $urlvar = "https://www.php.net";
  13.  
  14.     ?>
  15.  
  16.     <script>
  17.     window.location.replace("<?php echo $urlvar; ?>");
  18.     </script>
  19. </body>
  20. </html>
RAW Paste Data