...

View Full Version : Redirect



100asa
07-10-2012, 02:15 AM
For some reason the following code isn't working:

header("Location: index.php");
exit;

Any ideas? :)

Cheers!

100asa
07-10-2012, 02:31 AM
Got it working by placing it into a function. Don't know why it wasn't working without being placed into a function. Anyone have any ideas? :)

Inigoesdr
07-10-2012, 04:18 AM
That should work unless you have it in some other context or scope.

Arcticwarrio
07-10-2012, 08:53 PM
try


header('Location: /index.php');



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum