![]() |
|
When logged in it redirects, how to? - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: PHP (https://sinister.ly/Forum-PHP) +--- Thread: When logged in it redirects, how to? (/Thread-When-logged-in-it-redirects-how-to) |
When logged in it redirects, how to? - BlueCat - 06-15-2014 Like HC when you log in, It re-directs you to the index page, How would you do that? When logged in it redirects, how to? - BlueCat - 06-15-2014 Like HC when you log in, It re-directs you to the index page, How would you do that? RE: How to do this - Ex094 - 06-15-2014 Using the header function Code: header("Location: hackcommunity.com");RE: How to do this - Ex094 - 06-15-2014 Using the header function Code: header("Location: hackcommunity.com");RE: How to do this - BlueCat - 06-15-2014 (06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function Do I place that anywhere in the php code? or? RE: How to do this - BlueCat - 06-15-2014 (06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function Do I place that anywhere in the php code? or? RE: How to do this - Ex094 - 06-15-2014 (06-15-2014, 04:07 PM)BlueCat Wrote:(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function Yes! for example: Code: if ($url == "Google") {
header("Location: http://www.google.com");
} else {
//Redirect somewhere else
}You can use it where ever you want RE: How to do this - Ex094 - 06-15-2014 (06-15-2014, 04:07 PM)BlueCat Wrote:(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function Yes! for example: Code: if ($url == "Google") {
header("Location: http://www.google.com");
} else {
//Redirect somewhere else
}You can use it where ever you want RE: How to do this - BlueCat - 06-15-2014 (06-15-2014, 04:14 PM)Ex094 Wrote:(06-15-2014, 04:07 PM)BlueCat Wrote:(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function Thanks Man! RE: How to do this - BlueCat - 06-15-2014 (06-15-2014, 04:14 PM)Ex094 Wrote:(06-15-2014, 04:07 PM)BlueCat Wrote:(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function Thanks Man! |