Using Check Boxes and Radio Buttons with MFC Parse Maps

ID: Q174831


The information in this article applies to:
  • Microsoft Internet Server Application Programming Interface (API)
  • Microsoft Visual C++, 32-bit Editions, version 5.0


SUMMARY

This article contains an example of how to use HTML Check Boxes and Radio Buttons with an MFC ISAPI Parse Map.

Following are some important points:

  • Either a numeric or string value can be used for the VALUE tag in the HTML form, as long as the corresponding Parse Map parameter matches.


  • A unique NAME must be used for each Check Box; the MFC Parse Map cannot properly enumerate multiple instances of the same form variable.


  • A default value must be defined for each Check Box/Radio Button parameter in the MFC Parse Map. If this is not done, the browser will receive an error if a Check Box is left unselected, or no selection is made in a group of Radio Buttons.



MORE INFORMATION

The sample below contains a Visual C++ 5.0 project created with the ISAPI Extension Wizard, and an HTML file containing sample forms to be submitted to the ISAPI DLL. The HTML file should be placed in the same virtual directory as the compiled DLL. The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

Checkbox.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

Additional query words:

Keywords : kbfile kbsample iisapi ISAPIext
Version : winnt:5.0
Platform : winnt
Issue type : kbinfo


Last Reviewed: December 8, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.