1.11M Members

code error

 
0
 

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.';
                }
                ?>
 
-1
 

What's the error?

 
0
 

what error are you gettng? please give more details?

 
0
 

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

 
0
 

74 is right at start of the code

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

it works thanks

Question Answered as of 10 Months Ago by pritaeas and renierdbruyn
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: