Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3967998
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:47:19+00:00 2026-05-20T03:47:19+00:00

I have this structure in my page. Secondary form works, and main does not.

  • 0

I have this structure in my page. Secondary form works, and main does not. When I remove secondary, then MAIN works. I would like to keep them both in this structure because I ended my code. Is there any way to manage it? Thank you!

<form name="main" action="result.php" method="post">
. // this form submits some results to result.php
.
. 
<form name="secondary" ........>
.
. //this is an ajax form that uploads an image to the server
</form>
.
.
.
<input button>
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:47:19+00:00Added an answer on May 20, 2026 at 3:47 am

    Not possible like that, sorry: that is not valid markup – HTML forms do not allow nesting. I’m sorry if that’s inconvenient; as it stands, this will only break in various interesting ways in different browsers, and definitely will not do what you intended.

    On a more positive note: the final goal you want is achievable, albeit in different ways:

    • do the image and form processing in one form (not entirely convenient, I admit)
    • have the “inner form” as an IFRAME
    • send “inner form” via AJAX:
      • the “inner form” is not a <form>, maybe just a <fieldset>?
      • it has an input button, which launches a JS method which sends the data from the “inner form” via AJAX
      • the “outer form” is an actual <form>; before it’s submitted, it clears the contents of the “inner form”, so the “inner form” fields aren’t submitted with “outer form”
      • this will break without JavaScript
    • have the “inner form” outside the “outer form” HTML, position them with CSS (so it appears to be “outer” and “inner”, when it’s actually “form #1” and “form #2”) – as suggested by @Kau-Boy in the comments
      • this would probably look strange in screen-readers etc, but it would be the cleanest approach IMO
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my structure is like this: master page aspx(web form) ascx(user control) I have a
I have an HTML5 page structure like this: <article id=article_id> <div></div> <div> </div> <div>
I have this structure on form, <input type=test value= id=username /> <span class=input-value>John Smith</span>
Say i have this this structure. MyApp ├── main.py └── package ├── __init__.py ├──
I have this page table structure to store all the website page information, page_id
i have this site structure: First page: <script src=../jquery.uniform.min.js type=text/javascript charset=utf-8></script> <script type=text/javascript charset=utf-8>
I have this simple html structure: <div id=mainbody> <div id=main> ... </div> <div id=left>
I have a page with this structure: topbar (100% width) sidebar content i want
I have this page and when i click the header like Computers or any
I have this structure: Activity A has a ViewPager. The pages of a ViewPager

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.