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

  • Home
  • SEARCH
  • 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 9153327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:15:21+00:00 2026-06-17T12:15:21+00:00

I have three SELECT boxes with three different NAMEs, like <select name=a> <option>something</option> <option>something</option>

  • 0

I have three SELECT boxes with three different NAMEs, like

<select name="a">
  <option>something</option>
  <option>something</option>
</select>
<select name="b">
  <option>something</option>
  <option>something</option>
</select>
<select name="c">
  <option>something</option>
  <option>something</option>
</select>

Before sending the form, I would like to join the three selects into one, as my PHP script on the other side can only handle the object/array “a”.

I thought it could work like like this:

  <input type="hidden" name="temp" value="" />
  <a href="#" onclick="document.formIndex.temp.value = \n
    document.formIndex.a.value.concat(document.formIndex.b.value,
    document.formIndex.c.value); alert(document.formIndex.c.value);
    document.formIndex.a.value = document.formIndex.temp.value;
    document.formIndex.submit(); return false" class="search_button">
    search
  </a>

But that doesn’t work. Thanks for any tips what I should do.

  • 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-06-17T12:15:22+00:00Added an answer on June 17, 2026 at 12:15 pm

    Just give them the same name, and the browser will send three values with the same key to the server:

    <select name="a">
      <option>something</option>
      <option>something</option>
    </select>
    <select name="a">
      <option>something</option>
      <option>something</option>
    </select>
    <select name="a">
      <option>something</option>
      <option>something</option>
    </select>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three select boxes state,city and locality with the id's same as name
I have the following HTML markup:- <select name=List1 id=l1> <option>One</option> <option>Two</option> <option>Three</option> <option>Four</option> <option>Five</option>
I have a Zend form with three select boxes. When the form is first
I have three select boxes: <select id=one> <option value=default>Select Product</option> <option value=value-a1>string1</option> <option value=value-a2>string2</option>
I have three different select boxes that users can choose from. I need to
I have three select boxes. <div style='float: left; padding-right: 10px;'> <select size=10 name=company_id> //
I have two select boxes like so: <select id=one> <option value=default>Select File</option> <option value=path/to/file1>File
I have a form with a select box and three text input boxes. When
I currently have a HTML select box like below. <select name=item_1> <option value=0>Choose one...</option>
I have three select boxes :- select1 select2 select3 , i am fetching data

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.