-1

I'm making a website where you can sign up for a handball team by filling out a form (simple school project). I want to check whether this form has been filled out or not by using isset. Here's my code:

<?php
    require("mysql.php");
    if(isset($_GET['submit']{ 
        db_koble_til("localhost", "root", "", "handball");
        ...
        ...

The problem is though, I get an error after the if statement on the fourth line. When I run the site, it says there's an unexpected semicolon there. What do I do to fix this? My php knowledge is very limited as you probably can tell.

Hilmi Erdem KEREN
  • 1,949
  • 20
  • 29
Keisle
  • 48
  • 6

2 Answers2

3

You have forgot about ")" sign

<?php
require("mysql.php");
if(isset($_GET['submit'] )) { 
    db_koble_til("localhost", "root", "", "handball");
    ...
    ...
Nikita_Sp
  • 94
  • 4
1
if (isset($_GET['submit'])) {
    // Every parenthesis opened should be followed by a closing parenthesis.
} 
Hilmi Erdem KEREN
  • 1,949
  • 20
  • 29