1,105,229 Community Members

code error

Member Avatar
andreiviziru
Junior Poster in Training
83 posts since Aug 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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.';
                }
                ?>
Member Avatar
pritaeas
mod_pritaeas
11,285 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,829 [?]
Skill Endorsements: 154 [?]
Moderator
Featured
Sponsor
 
-1
 

What's the error?

Member Avatar
renierdbruyn
Light Poster
39 posts since Aug 2012
Reputation Points: 14 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

what error are you gettng? please give more details?

Member Avatar
andreiviziru
Junior Poster in Training
83 posts since Aug 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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"

Member Avatar
andreiviziru
Junior Poster in Training
83 posts since Aug 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

74 is right at start of the code

Member Avatar
pritaeas
mod_pritaeas
11,285 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,829 [?]
Skill Endorsements: 154 [?]
Moderator
Featured
Sponsor
 
0
 
if (isset($_SESSION['Username']) and ($_SESSION['Username']=='axxxA'))
Member Avatar
andreiviziru
Junior Poster in Training
83 posts since Aug 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

it works thanks

Question Answered as of 7 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: