FILE: Using Check Boxes and Radio Buttons with MFC Parse Maps

Last reviewed: October 9, 1997
Article 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 Software Library:

 ~ CheckBox.exe (size: 35080 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

Keywords          : IISAPI ISAPIext
Technology        : kbInetDev kbmfc
Version           : WINNT:5.0
Platform          : winnt
Issue type        : kbfile
Solution Type     : kbsample


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 9, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.