Forum Moderators: coopster

Message Too Old, No Replies

Redirect Url

Problem with link

         

tanika

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

10+ Year Member


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?>"><?');

omoutop

6:44 am on Sep 3, 2014 (gmt 0)

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



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