Functions | |||
![]() | ![]() | int | CGIEntrance (rpCgiPtr CgiRequest) |
![]() | ![]() | Call this function at the beginning of every installed CGI procedure. More... | |
![]() | ![]() | void | CGIExit () |
![]() | ![]() | Call this function at the end of every installed CGI procedure. More... | |
![]() | ![]() | int | size () |
![]() | ![]() | This funtion returns the number of tags of a form. More... | |
![]() | ![]() | FormItem far* | getFirstTag () |
![]() | ![]() | This functions returns a far pointer to the first tag. More... | |
![]() | ![]() | FormItem far* | getNextTag () |
![]() | ![]() | This functions returns a far pointer to the next tag of a form. More... | |
![]() | ![]() | FormItem far* | getTagAt (int tag) |
![]() | ![]() | With this function you can get a far pointer of a tag of your choice. More... | |
Licence: GPL
This lib is an extention to the CGIAPI. It gives you the possibility for easy handling form data, the so called tags.
This Lib contains very easy functions for reading the values of a tag of a form.
Definition in file smpcgi.h.
| int CGIEntrance (rpCgiPtr CgiRequest) |
Call this function at the beginning of every installed CGI procedure.
It parses the arguments and alloc memory.
| CgiRequest | this is a far pointer to the environment comming with a call of the CGI procedure |
| void CGIExit () |
Call this function at the end of every installed CGI procedure.
It cleans up the memory which was allocated for the tags.
| int size () |
This funtion returns the number of tags of a form.
| FormItem far * getFirstTag () |
This functions returns a far pointer to the first tag.
The tag is handled as a FormItem structure. You can access values like name and the belonging value by the members of this struct.
| FormItem far * getNextTag () |
This functions returns a far pointer to the next tag of a form.
It has a internal counter for determining the next tag. If you call this function before getFirstTag() then you'll get a far pointer to the first tag. Access the the values by the members of the FormItem struct.
| FormItem far * getTagAt (int tag) |
With this function you can get a far pointer of a tag of your choice.
| tag | the choosen tag - it's limit between 0..size() |
1.0.0 written by Dimitri van Heesch,
© 1997-1999