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…
Why not use the
$_POSTto 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:
The array would be like this when posted: