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 4038222
In Process

The Archive Base Latest Questions

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

I just have a question about putting a single form with multiple inputs into

  • 0

I just have a question about putting a single form with multiple inputs into different divs.

I have 4 main sections that I need to divide into separate divs but they all must get posted to a single php file. The separation is needed as I am trying to set the layout of the page.

    <div id="1">
    <form method="post" action="process.php"> 
    URL <input type="text" name="url" size="50"/>
    </div>

    <div id="2">
    <input type="checkbox" name="ck1" value="option1" />
    <input type="checkbox" name="ck2" value="option2" />
    <input type="checkbox" name="ck3" value="option3" />
    </div>

    <div id="3">
    <input type="checkbox" name="ck4" value="option4" />
    <input type="checkbox" name="ck5" value="option5" />
    <input type="checkbox" name="ck6" value="option6" />
    </div>

    <div id="4">
    <input type="submit" value="Submit">
</form>
    </div>

This does work but does not validate for obvious reason. I tried using the fieldset element but it has that line border around the filesets just dosen’t seem to be suitable for my situation. What would be the proper way of formmating this and have it still work?

  • 1 1 Answer
  • 1 View
  • 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-20T12:26:47+00:00Added an answer on May 20, 2026 at 12:26 pm

    What you need to do is use fieldset tag, however, as always this is one option of many.

    Example: fieldset

    To illustrate this example, see my code/result here:
    http://jsfiddle.net/grARw/

    Make sure that the form tags are at the top and bottom and not in between div elements.

    Here’s the code:

    <form method="post" action="process.php"> 
        <fieldset id="f1">
            <label>URL</label><input type="text" name="url" size="50"/>
        </fieldset>    
        <fieldset id="f2">
            <p><input type="checkbox" name="ck1" value="option1" /> Yes</p>
            <p><input type="checkbox" name="ck2" value="option2" /> No</p>
            <p><input type="checkbox" name="ck3" value="option3" /> Maybe</p>
        </fieldset>  
        <fieldset id="f3">
            <input type="checkbox" name="ck4" value="option4" /> Great
            <input type="checkbox" name="ck5" value="option5" /> Average
            <input type="checkbox" name="ck6" value="option6" /> Poor
        </fieldset >
        <fieldset id="f4">
            <input type="submit" value="Submit">
        </fieldset>
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I just have posted a question about this code (which was answered): $(document).ready(Main);
I am just getting into Sharepoint, and I have a question about having a
I just have a quick question about how to get the length of a
I have a question about my C++ homework. I am just confused about *this.
I just saw this dating site on builtwithbootstrap and have a question about table
I just discovered the what c# knowledge should I have? question and wondered about
I just have a question regarding SimpleJSON's documentation. Is it implicit understood that functions
I'm putting together my first MVC application and have a question about how to
My question is similar to another one about putting data from a text_field into
I just have a few questions about programmatically adding controls in aspx . After

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.