Parse error: syntax error, unexpected '==' (T_IS_EQUAL) in /home/ubuntu/workspace/pset7/public/register.php on line 5

And this line was in distribution code, so I didn`t write anything in this line. Here it is:

//if user reached page via GET (as by clicking a link or via redirect)
    if ($_SERVER["REQUEST_METHOD"]) == "GET")

Please help me

1 Answer 1


There is one opening paren and two closing.

Remove the ) after $_SERVER["REQUEST_METHOD"]

  • oh, thank you so much!
    – Kateryna
    Nov 10, 2016 at 23:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .