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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:40:42+00:00 2026-05-16T03:40:42+00:00

While I do understand php, I’m more of a sysadmin than a programmer. Add

  • 0

While I do understand php, I’m more of a sysadmin than a programmer. Add that I really hate HTML and never used AJAX nor javascript 🙂

I’ll have to do a php page that gets data from an HTML form and sends it as an Excel attachment via email. Of course I’d like to reuse as much code as possible from already-made solutions. It’s kind of “submit quantities and prices of items” stuff.

Requirements are rather simple:

  • form has a fixed number of columns, most of them are free text and two of them will only accept numerical values (quantity, integer, and price, decimal)
  • it must only accept numerical values in the last two columns, and compute an additional column with the product of them (q.ty * price) either in “realtime” (AJAXy style) or as a final preview step before actually submitting data (compile > hit ‘preview’ > confirm)
  • form starts with one or some empty rows, if the user fills all of them she must get more free rows (again, AJAXy or clicking are both ok)
  • form will present a final preview of the compiled data, also computing the sum of all quantities and the sum of all prices, and ask for a few more fields (name, email, etc.)
  • build an Excel spreadsheet with the very same structure: rows with items, q.ty, price, a row with totals, and some sparse cells with the additional data (name, mail, etc)
  • send an email to a predefined address with the above excel

How to best implement it?

  • a quick google search reveals many php sources to create an excel spreadsheet, are there any “de facto standard” or any one that stands above the others?
  • is there some pre-made html/ajax/php package to manage the form part and validate data and compute products and sums that I could use instead of writing my own html4 static ugly table? 🙂

Should it be needed for any of the above components, there’s a mysql available.

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-16T03:40:42+00:00Added an answer on May 16, 2026 at 3:40 am

    In answer to the first question, I’d recommend PHPExcel, although I do have a certain vested interest in the library.

    The calculations can be handled by writing formula (e.g. =A3*B3 or =SUM(C2:C10) in your worksheets

    You can create an Excel workbook from scratch for each request; or you could read in a pre-formatted template, populate it with your data; and then save it and attach the file to your email

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

Sidebar

Ask A Question

Stats

  • Questions 539k
  • Answers 539k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The names are mangled with their class name in them.… May 17, 2026 at 2:10 am
  • Editorial Team
    Editorial Team added an answer Unfortunately the maximum number of threads ATLAS uses cannot be… May 17, 2026 at 2:10 am
  • Editorial Team
    Editorial Team added an answer You can use var str = "AAAA,12,BBBB,34,CCCCC,56"; var spl =… May 17, 2026 at 2:10 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I've been using xdebug to debug and understand code in php projects for a
I have an html form the links to a PHP email. The form works
I have a url that look like this reg.php?lang=no_NO&passkey=test and im trying to get
Please don't send me a link to php.net referencing mysql_real_escape_string as the only response.
I am looking to implement a simple forward indexer in PHP. Yes I do
I've been a PHP developer for many years now, with many tools under my
While installing an application onto a client's server, I would like to make sure
I am using maxminds geoip apache mod extention. It requires the php function 'apache_note'.
Afternoon, I've been looking around for a while without success to see if there's
I am a little confused about the session management in PHP. A lot of

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.