Your pseudocode is incomplete, because you do not show us where you call this mysterious function that "validates using $PHPSESSID."

Also, if that is really all your switch consists of, you're not really gaining anything over using a simple if construct:

if ($action == "msword")
echo $output;

Chris Boget wrote:

Ok, so the make up of the script that I'm having issues with
looks like this:

validation function {
global $PHPSESSID;
validate using $PHPSESSID;


process and define output

switch( $action ) {
case "msword":
word headers();

case "html":
echo output;


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to