Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Redirect Url

Problem with link

8:27 am on Sep 2, 2014 (gmt 0)

New User

joined:Sept 1, 2014
posts: 1
votes: 0

Im hoping someone with the know-how can perhaps assist me to set up a fairly long redirect url, when the url runs by itself it works fine but putting it inside redirect tags generates a lot of T-STRING and other error messages. The url is as follows:

header('location:?><a href="http://localhost/try/index.php?a=21&p=9&<?echo"propID=".$show?>"><?');
6:44 am on Sept 3, 2014 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 15, 2004
votes: 0

You cannot output anything in header() or before it is executed. You must construct a php variable for your url.

The final syntax will look like:
header("Location: ".$url);
$url will be just that, no href tags, no nothing, only a pure url

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members