Announcement

Collapse
No announcement yet.

CGI.C - Handling multiple forms on one page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CGI.C - Handling multiple forms on one page

    Hi,

    I'm using the CGI sample as the basis for my design. I want to have several forms on the same page so I can post each separately. How is this handled on the server side? In other words, how does the server distinguish between multiple posts from different forms and sort the their input data?

    - Bob

  • #2
    Bob, the easiest way is to key of the "submit" buttons for each of the forms. You can give the buttons different names but still have them cause a submit action.

    When you a processing the post message you check to see which submit button was clicked, then you use that info to decide which data to grab from which form.

    J

    Comment


    • #3
      Thanks. I'll give that a try.

      Comment

      Working...
      X