I have come across scripts that use:

```
isset($_POST['submit'])

```

as well as code that uses:

```
$_SERVER['REQUEST_METHOD']=='POST'

```

I was wondering the difference between these two and which method is best.