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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T13:50:39+00:00 2026-05-16T13:50:39+00:00

<form> <input class=date-pick type=text value=2010/08/02 name=date /> <table id=events_selection> <tr> <td> <img src=/admin/ajax/image.php?filename=/media/immagini/danieledaniela/1.jpg&maxw=200 />

  • 0
<form>        
    <input class="date-pick"  type="text" value="2010/08/02" name="date" />
    <table id="events_selection">            
        <tr>                
            <td>                    
                <img src="/admin/ajax/image.php?filename=/media/immagini/danieledaniela/1.jpg&maxw=200" />
                <select name="1">
                    <option value="0"> NESSUN EVENTO </option>                        
                    <option value="5">anelli</option>                        
                    <option value="8">ballo</option>                        
                    <option value="6">cerimonia in chiesa</option>                        
                    <option value="13">dettagli</option>                        
                    <option value="9" selected="selected"><strong>festa</strong></option>                        
                    <option value="4">gli sposi</option>                        
                    <option value="1">la sposa</option>                        
                    <option value="3">lancio del riso</option>                        
                    <option value="2">lo sposo</option>                        
                    <option value="11">preparazione sposa</option>                        
                    <option value="10">preparazione sposo</option>                        
                    <option value="7">ristorante</option>                        
                    <option value="12">varie</option>                        
                </select>
            </td>
            <td>
                <img src="/admin/ajax/image.php?filename=/media/immagini/danieledaniela/30.jpg&maxw=200" />
                <select name="31">
                    <option value="0"> NESSUN EVENTO </option>                        
                    <option value="5">anelli</option>                        
                    <option value="8">ballo</option>                        
                    <option value="6">cerimonia in chiesa</option>                        
                    <option value="13">dettagli</option>                        
                    <option value="9">festa</option>                        
                    <option value="4">gli sposi</option>
                    <option value="1">la sposa</option>                        
                    <option value="3">lancio del riso</option>                        
                    <option value="2">lo sposo</option>                        
                    <option value="11">preparazione sposa</option>                        
                    <option value="10">preparazione sposo</option>                        
                    <option value="7">ristorante</option>                        
                    <option value="12">varie</option>                        
                </select>
            </td>                
        </tr>
    </table>
</form>​​​​​​​​

HI, in a situation like this (which is an example, there are many selects and other inputs) posting this form would give a $_POST like this

array {
  date => "2010/08/09"
  input1 => "bla"
  input3 => "bla2"
  //list of selection
  1 => 2
  2 => 4
  3 => 5
  //ends list of selection
  input 4 => "bla4"
}

Can I directly from the HTML form put the <select>s in seperate array since they represent a grouped array?

array {
  date => "2010/08/09"
  input1 => "bla"
  input3 => "bla2"
  //list of selection
  array {
      1 => 2
      2 => 4
      3 => 5
  }
  //ends list of selection
  input 4 => "bla4"
}

Thanks!

  • 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-16T13:50:40+00:00Added an answer on May 16, 2026 at 1:50 pm

    This:

    <select name="selection[1]">
        <option>1</option>
        <option>2</option>
        <option>3</option>
    </select>
    <select name="selection[2]">
        <option>1</option>
        <option>2</option>
        <option>3</option>
    </select>
    

    Would return:

    'selection' => array(1 => 1, 2 => 1)
    

    Guess that’s what you’re looking for? 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background Users type information into web form inputs such as: <input type=text name=report_name value=First
I'd like to be able to have something like this: <form> <input type=date name=params.date/>
I'm trying to check if a form input has any value (doesn't matter what
I am trying to clear the value attribute of an 'Other' form input when
I am having a problem assigning a default value to my Spring Form input
I have a form which captures a date that the user input in a
How can I set the HTML class attribute to a form <input> using the
I have a class which enables forms with a file-type input to be submitted
How do you detect which form input has focus using JavaScript or jQuery? From
I have a cgi script which takes form input, I want to facilitate the

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.