Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help - Posting values of a form inside another form

    Hi All

    In my php page, I have two forms. One form has about 50 fields such as textboxes, radio buttons etc.

    I have put another form inside this form with 10 values. I have a submit button too.By clicking on the submit button the form need to be submitted into a url.I know we cannot use form inside a form.

    any how can I sumit the inner form and post the 10 field values to the action UR
    L?>. How jquery can handle this?

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I have put another form inside this form with 10 values.
    That's invalid markup and you can't expect the desired result from it.
    any how can I sumit the inner form and post the 10 field values to the action UR
    You may write the two procedures on the same "action" page and use some condition to process the data.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by abduraooft View Post
    That's invalid markup and you can't expect the desired result from it.
    *coughs urgently* doesn't point to anything abdura!

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Quote Originally Posted by Apostropartheid View Post
    *coughs urgently* doesn't point to anything abdura!

    I should have stated it like, nesting a form inside another one would produce an invalid markup and so OP shouldn't do it, right?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by abduraooft View Post

    I should have stated it like, nesting a form inside another one would produce an invalid markup and so OP shouldn't do it, right?
    I meant your URL. Unfortunately the W3C don't seem to allow validation via URI queries.


  •  

    Posting Permissions

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