include_once $_SERVER["DOCUMENT_ROOT"]."/BaseClass/CSession.php3"; function show_credit(){ GLOBAL $PHP_SELF,$change; include "./html/user_order/rapi_card.html"; } function add_credit(){ GLOBAL $PHP_SELF,$change; $html_order=$_POST; $incdir=getenv("document_root")."/card"; $sess=new CSession; $sess->setVar("html_order",$html_order); $lidm= date("YmdHis"); include("credit_card.php3"); $lidm="H".$lidm; echo ""; echo "
"; } switch($func) { case add_credit: add_credit(); break; case show_credit: show_credit(); break; default: show_credit(); } ?>