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")
{
word_headers();
}
echo $output;

Chris Boget wrote:

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

(pseudocode)
-------------------------
validation function {
global $PHPSESSID;
validate using $PHPSESSID;

}

process and define output

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

case "html":
echo output;
break;

}
-------------------------


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to