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

  • Home
  • SEARCH
  • 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 8837937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:51:31+00:00 2026-06-14T09:51:31+00:00

I have made a mail form like so <?php //session_start(); $Total = $_POST[‘Total’]; $room

  • 0

I have made a mail form like so

<?php

//session_start();


$Total = $_POST['Total'];
$room = $_POST['room'];
$letter = $_POST['letter'];
$Name = $_POST['name'];
$Email = $_POST['email'];
$Address = $_POST['address'];
$Message = $_POST['message'];
$body = "Message sent from CARBONYZED Quotation System | www.CARBONYZED.co.uk ".     "\r\n".
        "// Number of $room = Sel". $letter. " \r\n".
        "// Quote Total = ". $Total. " \r\n".                           
        "// Name = ". $Name. " \r\n".
        "// Email = ". $Email. " \r\n".
        "// Address = ". $Address. " \r\n".
        "// Message = ". $Message. " \r\n".

$subject = "**CONTACT FORM** - From CARBONYZED's Web Server";

      $to = "AffordableCleaners@carbonyzed.co.uk";
        $headers = 'AffordableCleaners@carbonyzed.co.uk' . "\r\n" .
      'Reply-To: AffordableCleaners@carbonyzed.co.uk' . "\r\n" .
        'X-Mailer: PHP/' . phpversion();
      if (mail($to, $Email, $body, $headers)) {
    echo("<p>Message successfully sent!</p>  Click here to go <a     href='http://www.affordablecleaners.co.uk'>back</a>");

    } else {
      echo("<p>Message delivery failed...</p>");
    }
       ?>

Which is great except I need to add some more functions. On the previous Page, I have a number of boxes, which I will post here

<tr>
<td align="left">Stairs</td>
<td align="center" style="text-align: left">
<select name="SelA">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input type="hidden" name="TotA" onFocus="this.blur();" />
<br></td>
<td width="120" align="center" style="text-align: left">
<select name="SelAA">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input type="hidden" name="TotAA" onFocus="this.blur();" />
<br></td>
<td width="116" align="center" style="text-align: left">
<select name="SelUA">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input type="hidden" name="TotUA" onFocus="this.blur();" />
<br></td>


</tr>

Please can you help me do two things, firstly pull forward the Stairs to send the content (e.g. Stairs) with the mail but also 3 values, the content for each of the in each of the drop downs…

Also, we may be adding a number of all with similar data, but not identical. basically the name text value in th Stairs format will allways be random but the SelA and SelUA will always be changing. Basically we would need it to loop for everything between and pulling in these 4 bits of info (or 8, 12, 16…

Hope somebody’s crazy brain can help

Regards

Henry

  • 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-14T09:51:33+00:00Added an answer on June 14, 2026 at 9:51 am

    Every form option from the previous page before the submit (whether it be POST or GET) will be included as it’s name on the next page. Just like the statements at the top of your PHP, you can get the values of your boxes:

    $SelA= $_POST['SelA'];
    $SelAA= $_POST['SelAA'];
    $SelUA= $_POST['SelUA'];
    

    Then you can just use these values in the body like you already have:

    $body = "Message sent from CARBONYZED Quotation System | www.CARBONYZED.co.uk ".     "\r\n".
            "// Number of $room = Sel". $letter. " \r\n".
            "// Quote Total = ". $Total. " \r\n".                           
            "// Name = ". $Name. " \r\n".
            "// Email = ". $Email. " \r\n".
            "// Address = ". $Address. " \r\n".
            "// Message = ". $Message. " \r\n".
            "// SelA= ". $SelA. " \r\n".
            "// SelAA= ". $SelAA. " \r\n".
            "// SelUA= ". $SelUA. " \r\n".
    

    Is that what you are looking for?

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

Sidebar

Related Questions

Ok, i have made a contact form. i need a php script to email
I have made a form in VS2008 which sends mail to the user. The
Problem: Have made a small mail program which works perfectly on my developer pc
I have made an iphone application like flip cards in which values of cards
Ok, so I made a form using HTML, and I'd like to get it
I have a form on my site. The user enters their e-mail and selects
I have made a feedback form.i put some jquery code to make it animate
I made a PHP script for a form, but dont't know how to get
I made a PHP page that looks up Constant Contact e-mail addresses in a
I have a custom edit form made for ASPxGridView but have a big problem

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.