I have a login class, whereby a user logs into the database then I want the method to redirect the user to their own profile page. I was hoping to use header() redirect although I've been having a few issues implementing it.
Because I want to call the header() after the HTMl has been started it won't re-direct, is there any neat way to wrap it into a function and call it when I need it?