Hope someone can help with this.
I've got a form (method=post. The users enters a userid/password and select 1 of three options from a radio button. I post to same php file.
If $Submit,
If userid/pass fields NOT filled in--> I post to same php file with error msg
If userid/pass not found on MySQL db--> I post to same php file with error msg
If everything ok,
I check radio option and issue appropriate header command
if ($radoption == "V2") {
header ("Location: http://localhost/requestchgF.php");
exit;
}
etc.
The code works fine until I enter a valid userid/pass and then I get this:
Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\customerf.php:2) in customerC.php on line 7
How can pass control to another script? Can I reset the headers? Help!