Login     Sign up
<img src=x onerror=prompt(1)> (@andhika38)
101 months ago
688 Views

Is this safe without using the function isset() ?

if ($_POST['bar'] == 'val') {

without isset() like this

if (isset($_POST['bar'])) {

1 people followed this question
1

without it can give you an E_NOTICE error.

Notice: Undefined index: bar in filename on line xx

Jcow Master @falcone
101 months ago