Jump to content

content instead of redirect


sphinx

Recommended Posts

Hi i was using the code below to redirect user when a  link like. www.site.com/?redirect was clicked, instead how do i add things to the page like "html code goes here" instead of the header?

 

<?php
$link ='http://www.whereitredirectstoo.co.uk';
if (isset($_GET['redirect']))
header('Location: ' . $link);
?>

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/215043-content-instead-of-redirect/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.