if(isset($_POST["marketing"])){
foreach($_POST as $key => $value){
if(strlen($value)<1)
continue;
echo "<option value='".$value."' selected >".$value."</option>";
}
I have create dynamic options in php. All option are selected by default . I want to add all selected option into database. How can i check options is selected or not?