what i'm doing wrong?

<?php if (isset($_SESSION['Username']=='axxxA')) {
echo '<form action="upload.php" enctype="multipart/form-data" method="POST">
    <input type="file" name="file" /><br /><br />
    <input type="submit" value="Upload" />
</form>';
                } else {
                    echo 'Trebuie sa fii logat ca axxxA pentru a modifica profilul.';
                }
                ?>

What's the error?

what error are you gettng? please give more details?

i get "Parse error: syntax error, unexpected T_IS_EQUAL, expecting ',' or ')' in /home/user/public_html/user/axxxA/index.php on line 74"

74 is right at start of the code

if (isset($_SESSION['Username']) and ($_SESSION['Username']=='axxxA'))

it works thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.