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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:28:11+00:00 2026-05-26T12:28:11+00:00

Do you have any suggestion for this particular problem. I have fairly complex html

  • 0

Do you have any suggestion for this particular problem.

I have fairly complex html table that is filled by user. I have some JavaScript function who is generating new row when is needed. I want to email this filled table when user hit button. So my question is how do I “capture” filled table, and then email it?
Of course I will be using php mail function.

I was thinking to print-screen where table is, and attach it to email. But there must be a better way…

  • 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-26T12:28:12+00:00Added an answer on May 26, 2026 at 12:28 pm

    Why not use the $_POST to send the email? When the user submits the table, you post your information, format it and email the posted information to the user. You said your table was filled in by the user. So, I assume you’re using input fields.

    When the JavaScript writes a new row, it can create a new array element in PHP by using the HTML element’s name.

    The would look like this:

    <table>
      <tr>
        <td><input type="text" name="textname[]" value="Value1" /></td>
      </tr>
      <tr>
        <td>
          <!-- Created with JavaScript -->
          <input type="text" name="textname[]" value="Value2" />
        </td>
      </tr>
      <tr>
        <td><input type="submit" name="submit_button" value="submit" /></td>
      </tr>
    <table>
    

    The array would be like this when posted:

    array(
      ['textname'] =>
        array(
         [0] => 'Value1',
         [1] => 'Value2'
        )
      )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have againg a problem with completition. now i can't get any suggestion. Sure
I have this problem that when there is an OpenGL application I am working
Anyone have any suggestions on how to make randomized colors that are all greenish?
I have a table in SQL server that has the normal tree structure of
So I have a very weird problem. I am writing some code in VB.Net
I have some queries that are taking too long (300ms) now that the DB
I have a particular problem I'm not sure how to approach. Here at the
Does anyone have any suggestions on how to mentor a junior programmer ? If
Does anyone have any suggestions (or a regular expression) for parsing the HTTP Accept
Does anyone have any suggestions for a good approach to finding all the CPAN

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.