<article>
    <table id="wrap">
    <tr>
        <td>
                <!--<p>Here at DRT we take our services very seriousely. We strive to provide the best work possible. 
                Our translations are well researched and thorough. Below you will find our process of Translation in detailed.</p>-->
                <img src="Translation Process.jpg" alt="Translation Process" id="transprocess">

        </td>

        <td> 


                <form id="form" action="formdata.php" method="post" enctype="text/plain" autocomplete="on" target="_blank">

                <fieldset>
                <legend>Get a FREE Quote</legend>
                      <label for="flname">First and Last name:</label><input type="text" name="flname" autofocus placeholder="Please type your first and last name." size="40" required /><br>
                     <!-- <label for="lname">Last name: </label><input type="text" name="lname" autofocus placeholder="Please type your last name." size="40" required><br>-->
                      <label for="email">E-mail: </label><input type="email" name="email" autocomplete="off" autofocus placeholder="Please type your e-mail." size="40" required /><br>
                      <label for="tel">Telephone: </label><input type="text" name="tel" autofocus placeholder="Please enter your phone number." size="40" required /><br>
                      Describe Request:<textarea name="DescRequest" autofocus placeholder="Please describe your request." maxlength="500" required></textarea><br>
                      Service Required:
                                        <select name="dropdown">
                                           <option value = "select">Please select one.</option>
                                           <option value = "translation">Translation</option>
                                           <option value = "web">Web Design</option>
                                         </select>          

                      <input type="submit" name="submit" value="Get FREE Quote" id="buttonCenter">
                      <input type="reset" value="Reset" id="buttonCenter">
                      </fieldset>
                    </form> 

        </td>

    </tr> 

    </table>
    </article>


php file



    <?php

    if ($_POST['submit']) {
        if (mail ($to, $subject, $body, $from)) { 
            echo '<p>Your request has been sent!</p>';
        } else { 
            echo '<p>Something went wrong, go back and try again!</p>'; 
        }
    }

    $flname = $_POST['flname'];
    $email = $_POST['email'];
    $tel = $_POST['tel'];
    $descRequest = $_POST['DescRequest'];
    $dropdown = $_POST['dropdown'];

    $from = 'From: Translations Designs'; 
        $to = 'emaus9@yahoo.com'; 
        $subject = 'Hello';


    $body = "From: $flname\n E-Mail: $email\n Telephone: $tel \n  Description Request:\n $DescRequest Service Required: $dropdown";


    ?> 


i am getting unindexed errors 

$flname = $_POST['flname'];
    $email = $_POST['email'];
    $tel = $_POST['tel'];
    $descRequest = $_POST['DescRequest'];
    $dropdown = $_POST['dropdown'];

You sould declare all you varaibles before execution.

//declare variables first
$flname = $_POST['flname'];
    $email = $_POST['email'];
    $tel = $_POST['tel'];
    $descRequest = $_POST['DescRequest'];
    $dropdown = $_POST['dropdown'];
    $from = 'From: Translations Designs'; 
        $to = 'emaus9@yahoo.com'; 
        $subject = 'Hello';
    $body = "From: $flname\n E-Mail: $email\n Telephone: $tel \n  Description Request:\n $DescRequest Service Required: $dropdown";




    //then execute
     <?php
    if ($_POST['submit']) {
        if (mail ($to, $subject, $body, $from)) { 
            echo '<p>Your request has been sent!</p>';
        } else { 
            echo '<p>Something went wrong, go back and try again!</p>'; 
        }
    }

I am getting the same problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.