[Solved] Parse error: syntax error, unexpected ‘{‘ in C:\wamp\www\reg.php [closed]


$requiredfields = ("firstname","lastname","password1","password2","gender"); 

This line is invalid. You should have the keyword array before the (.

In general, use a code editor that has bracket matching. This would help you find missing )}] and extra ({[ more easily. Some even include HTML tag matching in a similar way.

http://notepad-plus-plus.org/ is a good example.

solved Parse error: syntax error, unexpected ‘{‘ in C:\wamp\www\reg.php [closed]