Hi
Kindly help me what does this statement actually checks
if(isset($_POST['add']))
I have Input field with Type = "Submit" & ID = "add"
Thanks
Isset function
Moderators: egami, macek, gesf
-
- New php-forum User
- Posts: 42
- Joined: Tue Aug 02, 2011 2:52 am
http://www.php.net/isset
http://techtalk.virendrachandak.com/php ... z2oobovYAy
This will do exactly as it says. If the variable $_POST['add'] is set then TRUE will be returned (unless the value is NULL).
$_POST['add'] will only be set if you have posted a form containing an input with the name "add" or if you have set a value for it yourself in the code.
http://techtalk.virendrachandak.com/php ... z2oobovYAy
This will do exactly as it says. If the variable $_POST['add'] is set then TRUE will be returned (unless the value is NULL).
$_POST['add'] will only be set if you have posted a form containing an input with the name "add" or if you have set a value for it yourself in the code.