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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:42:42+00:00 2026-06-01T05:42:42+00:00

I need to create a PHP order form with 150 lines, each line has

  • 0

I need to create a PHP order form with 150 lines, each line has multiple fields that need to be captured. On submitting the form, what is the best way to enter this data into the mysql database without repeating code over and over?

I could get the form values for each of the 150 rows using POST, then writing to mysql with:

INSERT INTO example
  (example_id, name, value, other_value)
VALUES
  (100, 'Name 1', 'Value 1', 'Other 1'),
  (101, 'Name 2', 'Value 2', 'Other 2'),
  (102, 'Name 3', 'Value 3', 'Other 3'),
  (103, 'Name 4', 'Value 4', 'Other 4');

Is there a less cumbersome way of doing this?

The second step I need to do is display each of the entered records and allow the users to edit the product code or qty they want to order. these changes then need to update the order in the database?

any suggestions or guidance on this? With my limited skills I dont want to repeat each section of code 150 times?

Thanks in advance for any guidance you guys can give 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-01T05:42:44+00:00Added an answer on June 1, 2026 at 5:42 am

    you can do it by

    Insert into tblname set
    name = namevalue,
    email = emailvalue
    

    or you can just create form and when you will working on query so just print_r($_POST) and copy all array and save it on page with php comments just remove “>” sign and another some by finding and replacing, just put it on query.

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

Sidebar

Related Questions

I have a need to create a library of Object Oriented PHP code that
I am trying to create a form that utilizes PHP and Jquery AJAX form
I need to create a php search function for names and need to change
i need create a variable with parent subclass. Example: Parent Class <?php class parentClass
I need to create an ejabberd user from a PHP script. I also need
I need to create a web application using php, I had many users having
In a PHP project I'm working on we need to create some DAL extensions
i have a php script where i need to create a zip archive with
hi i need to create a bug in bugzilla using bugzilla webservices and php.
How to create simple PHP COMET server page displaying current time? I need code

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.