I'm going to takle your questions in reverse.
First why the cannot send headers info: 1) Make sure there is NOT BLANK lines or anything at the top. Even a single whitespace is considered output. Secondly, the error generated by line resulted in output (the error msg). So Once you get that straightended out, it should go away.

Ok, now for the error on line 2. You really should check to see if the $_GET[] is set first:

Code:
 if (isset($_GET["action"])) {
$Action = $_GET["action"];
}else{$Action='';}
Then use $Action in your switch:
Code:
switch ($Action) {
       case "auth":
	   
	        echo "you are at auth";
       
	   break;
	   
       case "sum": 
	   
	   	   echo "you are at sum";
       
	   break;
	   
       case "phpinfo": 
	   
	   	   phpinfo();
	   
       break;
       default: 
	   	   header( 'location:http://localhost:1987/php_dev/index.php?action=auth' );
	   exit;
   }
?>

To attempt to access it w/o first making sure it's there is akin to acessing an object before instanciating it.


Tg