I found the answer. Problem was I was retrieving those setting option values outside the if statement if(isset($_POST['formvalue'])){ }
and using them inside it. For that reason values were actually not pulled from database.
I found the answer. Problem was I was retrieving those setting option values outside the if statement if(isset($_POST['formvalue'])){ }
and using them inside it. For that reason values were actually not pulled from database.