hi can someone tell me what does this mean?

if(isset($_POST["userid"])){

Recommended Answers

"isset() will return FALSE if testing a variable that has been set to NULL" or if $_POST["userid"] has no value.

http://www.php.net/manual/en/function.isset.php

Jump to Post

All 3 Replies

It's right as said by davy_yg,

    if(isset($_POST["userid"])){

The above code is used to determine if a variable is set and is not NULL.

if(isset($_POST["userid"])){

this is used to check whether userid variable is used or not, and whether it has some value or not.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.