am trying to redirect the page using a header location, but it seems using the header function inside a function causes the problem cannot modify header info, any ideas ?
PS : i’ve already cleared white spaces, new lines and such things before asking
the only option was putting the redirect outside the function