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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:48:05+00:00 2026-06-10T05:48:05+00:00

I have a html form multiple data with same name. like this… HTML code

  • 0

I have a html form multiple data with same name. like this…

HTML code

<tr>
  <td valign="top"><input id="" type="text" name="asset_id" size="15"/></td>
  <td valign="top"><input id="" type="text" name="batch_code" size="15"/></td>
  <td valign="top"><input id="" type="text" name="description" size="50"/></td>
</tr>
<tr>
  <td valign="top"><input id="" type="textbox" name="asset_id" size="15"/></td>
  <td valign="top"><input id="" type="textbox" name="batch_code" size="15"/></td>
  <td valign="top"><input id="" type="textbox" name="description" size="50"/></td>
</tr>

how to send this in php $_POST[] to back-end process. please help me..

  • 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-10T05:48:07+00:00Added an answer on June 10, 2026 at 5:48 am

    Use this HTML:

    <tr>
      <td valign="top"><input id="" type="text" name="asset_id[]" size="15"/></td>
      <td valign="top"><input id="" type="text" name="batch_code[]" size="15"/></td>
      <td valign="top"><input id="" type="text" name="description[]" size="50"/></td>
    </tr>
    <tr>
      <td valign="top"><input id="" type="text" name="asset_id[]" size="15"/></td>
      <td valign="top"><input id="" type="text" name="batch_code[]" size="15"/></td>
      <td valign="top"><input id="" type="text" name="description[]" size="50"/></td>
    </tr>
    

    Note that there’s no type="textbox"; the correct type is text.
    In PHP, access the data like this:

    $_POST["asset_id"]; // this is an array of the values of the asset_id textboxes
    $_POST["batch_code"]; // array of batch codes
    $_POST["description"]; // array of descriptions
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML form that needs multiple submit buttons, like this: <input type=submit
I have a html form <form action=process.php method=post> <input type=checkbox name=name[v1] /> <input type=checkbox
I've got this HTML form where I have multiple input elements: text, radio, and
Say that I have two html nodes like this: <div class='node a'>one</div> <input class='node
I have an html input field, such as <form method=post action=process.php enctype=multipart/form-data> <div> <h3>Files:</h3>
I have a fairly complex html form enhanced via jquery. It has multiple tabs,
My input tag started to go crazy... I have html form for input to
I have an html form and I need to populate one of the input
I have the following JQuery AJAX call that sends HTML form data to my
My goal is to have something like a select option in a HTML form,

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.