$self = basename($_SERVER['PHP_SELF']); include_once "head.html"; $action = @$_REQUEST['action']; $question = @$_REQUEST['question']; // We have been asked a question. if (isset($question) && $question!="") { $cmd = "../cgi/ask ".escapeshellarg($question); exec($cmd, $out); echo "
\n"; echo "Your Question:\n"; echo " | ||
\n"; echo $question; echo " | ||
\n"; echo "The wizened old Sage said...\n"; echo " | ||
\n"; foreach($out as $o) { echo $o; } echo " |