• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Gathering User Input Using Forms > Creating a Custom Form Handler

Creating a Custom Form Handler

You can also set up a form to save results using a custom form handler. A form handler is a program on a server that is executed when a site visitor submits a form. You can use your custom script (ISAPI, NSAPI, CGI, or ASP Script) as a form handler.

Create a Custom Form Handler

Click the Folders button on the Views bar.

Right-click the folder that contains the script, and then click Properties on the shortcut menu. A dialog box opens containing the name of your page followed by the word Properties.

Select the Allow Scripts To Be Run check box.

If you want other users to be able to view files in your directory, select the Allow Files To Be Browsed check box.

Click OK.

Click the View menu, and then click Page.

Right-click the form, and then click Form Properties.

Click the Send To Other option, click the list arrow, and then click Custom ISAPI, NSAPI, CGI, or ASP Script formats.

Click Options.

Click the Method list arrow, and then select one of the following formats for submitting data to the form handler:

  • Get. Encodes the form's name-value pair and assigns the data to a server variable named Query_String.

  • Post. Passes the name-value pair to the form handler as input.

  • Default. Leaves the Encoding Type text box empty.

Click OK.

Click OK.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint