How to fix Undefined index: [duplicate]

that means that your variable may not be defined.

Use isset function.

You should wrap it into a condition like this :

if(!isset($id_desafilter)){
  $id_desafilter = "WHAT_YOU_WANT";
}
else{
 $id_desafilter = "WHAT_YOU_WANT";
}

This is how you can make sure your variable is define.

But please make sure to join your code to be helped

Have Fun 🙂

Leave a Comment