@ktcosmos - If you're trying to use a KFE tag on a PHP file that exists outside of the theme folder, it's not going to work.
KFE relys on certain hooks that WordPress provides to do it's thing, and if it's not processing a WordPress template (theme file), KFE won't run.
Additionally, I see you have
<txp:kml_flashembed_js/> on at least the makeappointment.php page. That's not going to work at all, as that's a tag designed for the Textpattern version of KFE.
Hope this helps.