G Web Server Examples

CGI Call with Multiple Parameters (POST)

When you call a CGI application to process an HTML form, you can specify that the fields in the form be sent as the content of the request. To do this, you specify the form's method as POST.

When you click on the Submit button, the CGI /cgi-bin/examples/post_mlt.vi will be invoked. This CGI simply generates an HTML document with the contents of the request. Note that the URL of the request does not contain any parameters.


Popup menu "popup":


Radio Buttons "radio":
Radio 1
Radio 2
Radio 3

Text input "name":





If you specify the form's method as GET, the parameters will be encoded and sent to the CGI as a query parameter. The following form will invoke the CGI /cgi-bin/examples/cgi_mlt.vi which simply generates an HTML document with the contents of the parameter list.

Popup menu "popup":


Radio Buttons "radio":
Radio 1
Radio 2
Radio 3

Text input "name":



© National Instruments