Two php tags variable

Hello,
I have a problem, how can i pass a variable value between two php tags exp:

<?php $var = 123; ?> //Some HTML code. <?php echo 'var : ' .$var // Result is var : . (Nothing) echo $var // Result is . (Nothing) ?>

How can i fix that?

You are missing the semi-colons at the end of each line you are echoing. If you turned on error reporting it would have told you.

Sponsor our Newsletter | Privacy Policy | Terms of Service