Okay, weird problem. I have the following php code:
<?php
$identifier = $_POST['DEPT'];
function displaydata(){
return $identifier;
}
?>
HTML CODE HERE
<?php echo displaydata(); ?>
This results in a blank page. However, when I replace
function displaydata(){
return $identifier;
}
with
function displaydata(){
return $_POST['DEPT'];
}
it accurately prints out the requested info.
Any clue what's going on here?