jeff5656 Posted July 8, 2012 Share Posted July 8, 2012 if (isset($_POST['ptsearch'])|| isset($_GET['searchname')){ I get this error: Parse error: syntax error, unexpected ')', expecting ']' in /home/etc... Maybe i am having a stroke, but I can't see where the parentheses are not all closed. Link to comment https://forums.phpfreaks.com/topic/265385-error-with/ Share on other sites More sharing options...
Pikachu2000 Posted July 8, 2012 Share Posted July 8, 2012 They aren't all closed. There are three ( and two ). expecting ']' tells you something else isn't closed either . . . Link to comment https://forums.phpfreaks.com/topic/265385-error-with/#findComment-1360080 Share on other sites More sharing options...
KevinM1 Posted July 8, 2012 Share Posted July 8, 2012 Specifically, look at the end of your $_GET. Link to comment https://forums.phpfreaks.com/topic/265385-error-with/#findComment-1360082 Share on other sites More sharing options...
jeff5656 Posted July 8, 2012 Author Share Posted July 8, 2012 oops. got it thanks. It threw me off because the error message was referring to a ) when the error was triggered by a missing ]. Link to comment https://forums.phpfreaks.com/topic/265385-error-with/#findComment-1360085 Share on other sites More sharing options...
Pikachu2000 Posted July 8, 2012 Share Posted July 8, 2012 Oh, I see what you did there. You added a missing ) to the OP when I wasn't looking . . . Link to comment https://forums.phpfreaks.com/topic/265385-error-with/#findComment-1360089 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.