Results 1 to 3 of 3

Thread: Form to servlet

  1. #1
    Join Date
    Feb 2006

    Form to servlet

    There are two forms in a page (A and B) with only one submit button for both. Is it possible to input submit the values of form A to table A in mySQL, then the values of form B to table B when I hit the submit button?

    We're only allowed to use servlets as html to sql connectors... how do I do this?

  2. #2
    Join Date
    Aug 2005
    The Garden State
    if you have two sets of <form></form> tags then what you're describing is impossible.

    otherwise, you should be able to do it with no problem. you need to walk through request.getParamters() to get all of the values and insert them accordingly

  3. #3
    Join Date
    Feb 2006
    ahh... so I should just use 1 form then separate elements using a script so that they go to their respective tables? ^_^

    Hm... how do I use request.getParameters()? Sorry... I only know very little of this stuff...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles