I have a variable in one <?php ?> and I refer to it in another <?php ?> how do i get the value to pass on into the new tag.
I did declare it GLOBAL.
When I moved the code from the first tag to the second, it worked fine.
I hope this is clear.
How did you decrate them global? This only used for functions. Can you give an example of your code that is not working?
<?php Global $test; $test = "something"; ?>
Html test, other stuff
<?php echo $test; ?>
If I put the line for the first tag the echo works. But it doesn't work like this.
try this instead:
<?
$my_var = 2;
?>
html stuff
<? print $my_var; ?>