Class QCGI version 1.0

public class qcgi
A class that process HTML forms.

Files:
  • qcgi.h: header file of the class
  • qcgi.cc: source code of the class

    Constructor:
  • qcqi()
    Get input data from the HTML form. This process
    can handle from posted by both POST and GET method.

    Methods:
  • void start_html()
    Print MIME header "text/html"

  • int get_entry_num()
    Get number of entries

  • char *get_entry_name(int pos)
    Get a string of the entry name at position "pos"

  • char *get_entry_val(int pos)
    Get a string of the value of the entry at position "pos"

  • char *get_entry_val(char *name)
    Get a string of the value of the entry with the name "name"

  • int get_int_entry_val(int pos)
    Get the integer value of the entry at position "pos"

  • int get_int_entry_val(char *name)
    Get the integer value of the entry with the name "name"

  • char *get_time()
    Get a string of the current time and date

  • char *get_http_referer()
    Get a string of the HTTP-REFERER enviroment variable

  • char *get_http_user_agent()
    Get a string of the HTTP-USER-AGENT enviroment variable

  • char *get_remote_address()
    Get a string of the ROMTE-ADDRESS enviroment variable

  • char *get_remote_host()
    Get a string of the ROMTE-HOST enviroment variable

    After you download the code, you should be able to compile it without any problems using any gcc or gcc++ compile. You need to include the qcgi.h in your program and link the object file of qcgi after compiling. Since this software is free, so I'm not responsible for anything that may cause by using this program, use at your own risk.

    If you have any question about the code, please drop me a mail at yhchan@novice.uwaterloo.ca Please give some comments and suggestions if you are using the code. So that I can do better in the up coming version 2.0


    main-------------------

    Never say die - La Salle Spirit