Im trying to implement sessions into my php code.. the main problem im having is.. I cant see any registered variables in functions.. here is an example
I have two files.. index.html and test1.php
test1.php includes functions..
index.html has this at the very top..
<?php
session_start();
session_register('Check');
$Check = "Checking";
?>
then a few lines down in the html code its this..
<?php require("test1.php"); ?>
<?php Test(); ?>
now in the test1.php file this is what I have
<?php
function Test() {
session_register('Check');
echo $Check;
}
?>
this is the problem.. when I do an echo.. I dont get anything.. $Check should contain a string "Checking" but doesnt print anything.. anyone got any ideas??