PHP Header redirect?
Posted: Fri Feb 21, 2014 4:08 pm
I am re-designing and converting an existing site to CMSMS. One of the pages has this PHP right at the top:
and further down within the page content there is a select element with a drop down list and when one of the options is selected the page redirects to the chosen option.
I understand that a PHP header event has to be the very first thing that happens before anything else on the page. So, my question is: How can I get this to work with CMSMS?
Any help very gratefully received,
T
Code: Select all
<?php
if(isset($_POST['Submit'])) {
$event = $_POST['event'];
if($event != "exit") {
$location = $event.'/';
header('Location:'.$location);
}
}
?>
I understand that a PHP header event has to be the very first thing that happens before anything else on the page. So, my question is: How can I get this to work with CMSMS?
Any help very gratefully received,
T