(I am a beginner in php)
I can set up a redirect that works.
## more code here
...but what I want to do is to redirect based on conditions in the code
fill-in the URL's querystring variables:
## create and assign default values to 3 variables:
## processing code here
## variables would be the querystring values
## ok, now, use the variables in the querystring AND use the correct header redirect destination:
but I am getting the dreaded error:
"Warning: Cannot modify header information - headers already sent by..."
I understand that I cannot send anything to a browser before calling the "header" function. What I think that means in that I cannot use "echo" anywhere on the page. Or maybe I can have an echo on the page, but if it is invoked, the redirect will not work and I'll get the error.
My page is a processing page, all php, no HTML. I know that MyConnect.php is strictly php, no HTML, but I am not sure about the Mail.php file (maybe that is the problem.)
So, is this doable? If yes, is my coding problem obvious?