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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:37:40+00:00 2026-06-17T16:37:40+00:00

I have a HTML (table) order form. Users need to fill in various cells

  • 0

I have a HTML (table) order form. Users need to fill in various cells to show the quantity that they would like to order of various items as you can see here: http://angelasmith.com.au/staging/

I have just set up PHPMailer with the default code that they provide and can confirm that I am receiving these emails. I now need to amend their code, so that the emails I receive actually display what information/quantities users have typed into my order form.

Here is an example of what’s in my mail.php file. Currently, I’m receiving emails that read “This is the HTML message body in bold!” as per the Body variable specified. I need to receive the order form containing the information/quantities that users have typed in. I have searched online thoroughly, and can only find examples for email & message, rather than other custom form fields.

$mail->Subject = "New Online Form Enquiry";
$mail->Body    = "This is the HTML message body <b>in bold!</b>";
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";

if(!$mail->Send())
{
   echo "Message could not be sent. <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}

echo "Message has been sent";
?>

Example of a table row in my HTML file. I included this as I believe that I need to be adding a variable of each cell name such as $b15 to retrieve user input, but I’m unsure exactly. I don’t mind if the email I receive is not displayed as a table – I just need to be able to read whatever a user has entered into the form.

<tr>
 <td rowspan="2" align="right" class="leftColText"><strong>10 RE</strong></td>
 <td height="28"><input name="b15" type="text" class="tdcenter" id="b15" value="1200" style="width:100%;"/></td>
 <td><input name="c15" type="text" id="c15" style="width:100%;" onchange="javascript:calcupptbl(15,1.2,5)"/></td>
 <td><input name="d15" type="text" id="d15" style="width:100%;" onchange="javascript:calcupptbl(15,1.2,5)"/></td>
 <td><input name="e15" type="text" id="e15" style="width:100%;" onchange="javascript:calcupptbl(15,1.2,5)"/></td>
 <td><input name="f15" type="text" id="f15" style="width:100%;" onchange="javascript:calcupptbl(15,1.2,5)"/></td>
 <td><input name="h15" type="text" id="h15" style="width:100%;"onchange="javascript:calcupptbl(15,1.2,5)"/></td>
 <td><input name="i15" type="text" id="i15" style="width:100%;" onchange="javascript:calcupptbl(15,1.2,5)"/></td>
 <td><input name="j15" type="text" id="j15" style="width:100%;" onchange="javascript:calcupptbl(15,1.2,5)"/></td>
 <td><input name="k15" type="text" id="k15" style="width:100%;" onchange="javascript:calcupptbl(15,1.2,5)"/></td>
 <td><input name="l15" type="text" class= "tdcenter" id="l15" value="0.00" style="width:100%;"/></td>
 <td><input name="m15" type="text" class="tdcenter" id="m15" value="0" style="width:90%;" onchange="javascript:calcupptbl(15,1.2)"/></td>
</tr>
  • 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-17T16:37:40+00:00Added an answer on June 17, 2026 at 4:37 pm

    Ok… so, if I understand clearly, once a customer clicks on “Submit Order”, your script that sends mail is called with a post method. So you you have to retrieve submitted values. So on the top of your script you do this, for example:

    if (!empty($_POST))
    {
        $quantity = isset($_POST['quantity']) ? $_POST['quantity'] : 0;
        $account = isset($_POST['quantity']) ? $_POST['quantity'] : 'Anonymous';
    

    Now… once you have retrieved, sanitized and checked all of your values, you insert them into your mail body:

        $mail->Body = "I just received an order of $quantity items from $account!";
    

    Every $_POST value correspond to an input id of your form.

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

Sidebar

Related Questions

I have an order form (table) that I need to be sent to an
I have an HTML table that contains some 500 rows. I have an input
I have a simple html form that submits information with POST function. But when
I have following HTML table: <form method=post action=update-table.php> <table class=table-data style=width: 960px;> <thead> <tr>
I have a homework assignment that asks to create an order form. The order
I have a HTML form, which includes radio buttons that the user can select
So I have a table on a server that saves posts that users enter.
I have a table which uses a large number of form fields (the HTML
I have HTML table. I'm looping through table and iterate over each row whose
see fiddle i have html table and one textbox and one button.make cell selection

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.