Login     Sign up
<img src=x onerror=prompt(1)> (@andhika38)
94 months ago
629 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
94 months ago