By analysing the Web based Bibliographic Query System of ZMU Library, the paper describes how to write a CGI program by VFP with Foxweb, and also describes the significant position of Foxweb in developing WWW based bibliographic query system in library.