SuDung "XuatNhap.cbd";
SuDung "CGI.cbd";
Lop HelloWWW
HamSo BatDau( args )
cgi = CGI(); // CGI(); must be the first statement in the function BatDau!
vaora = XuatNhap();
act = cgi.LayGet( "act" );
vaora.HienThiXD( "
Hello CBDL\n" );
Neu act != "hello" Thi // show form
vaora.HienThiXD( "" );
KhongThi
strName = cgi.LayPost( "username" );
Neu strName == "" Thi
vaora.HienThiXD( "Error: Please click here and enter your name!
" );
KhongThi
vaora.HienThiXD( "Hello, {0}. Pleased to meet you!", strName );
Het;
Het;
vaora.HienThiXD( "" );
Het;
Het;