I found something strange happening with this:
if(isset($_POST['name'])){
echo $_POST['name'];
}
else{
echo "please enter name";
}
in the above example the else statement does not work.
if(empty($_POST['name'])){
echo "please enter name";
}
else{
echo $_POST['name'];
}
but when I do it like this, it works. Can anybody tell me why this is happening?