Hello again.
Well im having yet another problem, although i don't understand what is wrong (Like usual)
Im trying to place this:
<?php session_start(); ?>
<?php if (isset($_SESSION['user'])){ ?>
<?php echo "Welcome ".$_SESSION['user']; ?>
Inside of a HTML document.
The HTML document just has <html></html> tags, with all the homepage text.
And im trying to make a Login thing. I copied this from a PHP page, which had HTML inside of it. I know how to do HTML inside of PHP but not vis versa.
O and it just doesn't display anything. It is supposed to say "Welcome [Username]" On the Homepage, but it doesn't.
It does on the login.php page, that say i am logged in, but when i try on the homepage with the script above it just doesn't do anything.
Thanks again.
EDIT:
I have the <?php - ?> on every line cause i have already tried the
<?php
blah
?>
And it just did the same.