Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 基于“选择”下拉列表提交具有不同输入值的表单_Javascript_Php_Jquery_Html_Forms - Fatal编程技术网

Javascript 基于“选择”下拉列表提交具有不同输入值的表单

Javascript 基于“选择”下拉列表提交具有不同输入值的表单,javascript,php,jquery,html,forms,Javascript,Php,Jquery,Html,Forms,大家好,我目前的代码有问题,需要帮助,在大多数情况下,它是有效的,但有一两个小问题,我需要帮助 下面的代码是这样的,它从一个输入字段和两个选择下拉列表开始。第二个下拉列表确定需要显示哪些其他输入字段。一旦发生这种情况,用户将填写字段并提交表单。然后转到php文件来处理值、验证等,称为newformprocess.php 下拉列表与JavaScript一起工作,以确定要显示和隐藏的内容。因此,在索引页newform.html中有三个不同的部分,每个部分都带有“Display:none;”代码,根据

大家好,我目前的代码有问题,需要帮助,在大多数情况下,它是有效的,但有一两个小问题,我需要帮助

下面的代码是这样的,它从一个输入字段和两个选择下拉列表开始。第二个下拉列表确定需要显示哪些其他输入字段。一旦发生这种情况,用户将填写字段并提交表单。然后转到php文件来处理值、验证等,称为newformprocess.php

下拉列表与JavaScript一起工作,以确定要显示和隐藏的内容。因此,在索引页newform.html中有三个不同的部分,每个部分都带有“Display:none;”代码,根据下拉列表隐藏或显示。所有这些都很好,我相信下一部分就是问题所在,但我无法解决它

发生的事情是,我在代码中进行了少量验证,不管是什么,即使填充所有字段,它仍然会给我一个错误,告诉我填充所有字段,但是,我已经填充了所有字段。第二个问题如果我去掉所有的验证,只留下一个,它会工作,但是,当我点击提交,收到电子邮件时表单发送时,我丢失了很多输入字段,这意味着用户键入的内容我没有得到,不是所有的输入字段我都得到了用户键入的内容

newform.php在下面的索引页中显示。

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Offer Submission Form</title>
    <link rel="stylesheet" type="text/css" href="css/mystyle.css">
    <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
    <script type="text/javascript" src="js/newForm.js"></script>
  </head>

<body>
 <div class="form-style-10">

  <div class="inner-wrap">

   <form action="newformprocess.php" method="post">

    <label>Dealership Name:<em class="required-star">*</em></label><input id="dealerName" name="dealerName" type="text" placeholder="Dealership Name" style="background-color: white;"/>

    <label>Which Marketing Medium?<em class="required-star">*</em></label><select id="market" type="select" name="marketing">
        <option id="market1" value="Facebook">Facebook</option>
        <option id="market2" value="Website Banner">Website Banner</option>
        <option id="market3" value="Radio">Radio</option>
        <option id="market4" value="TV">TV</option>
        <option id="market5" value="Email">Email</option>
        <option id="market6" value="Direct Mail">Direct Mail</option>
        <option id="market7" value="All Channels">All Channels</option>
    </select>


        <label>Offer Type?</label><select id="offertype" type="select" name="offerType">
            <option id="option_1" value="New">New Purchase</option>
            <option id="option_2" value="Leased">New Lease</option>
            <option id="option_3" value="Used">Used Purchase</option>
        </select>


    <!--This div section is for when client select puchased as their new opiton....--->
    <div id="purchased" style="display:none;">
        <label>Start Date:<em class="required-star">*</em></label><input id="pur_startDate" name="startDate" type="text" placeholder="01/01/2012" style="background-color: white;"/>
        <label>End Date:<em class="required-star">*</em></label><input id="pur_endDate" name="endDate" type="text" placeholder="05/07/2015" style="background-color: white;"/>
        <label>Year:<em class="required-star">*</em></label><input id="pur_vehicleYear" name="yearOfVehicle" type="text" placeholder="Vehicle Year" style="background-color: white;"/>
        <label>Make:<em class="required-star">*</em></label><input id="pur_make" name="makeOfVehicle" type="text" placeholder="Make" style="background-color: white;"/>
        <label>Model:<em class="required-star">*</em></label><input id="pur_model" name="modelOfVehicle" type="text" placeholder="Model" style="background-color: white;"/>
        <label>Trim:<em class="required-star">*</em></label><input id="pur_trim" name="trimOfVehicle" type="text" placeholder="Trim of Vehicle" style="background-color: white;"/>
        <label>Model #:<em class="required-star">*</em></label><input id="pur_input_5" name="modelNumber" type="text" placeholder="14325" style="background-color: white;"/>
        <label>Stock #:<em class="required-star">*</em></label><input id="pur_input_5" name="stockNumber" type="text" placeholder="1234" style="background-color: white;"/>
        <label>MSRP:<em class="required-star">*</em></label><input id="pur_input_5" name="msrpNumber" type="text" placeholder="15995" style="background-color: white;"/>
        <label>Selling Price:<em class="required-star">*</em></label><input id="pur_input_5" name="sellingPrice" type="text" placeholder="12895" style="background-color: white;"/>
        <label>Down Payment:<em class="required-star">*</em></label><input id="pur_input_5" name="downPayment" type="text" placeholder="1000" style="background-color: white;"/>
        <label>$XXX/ Monthly Payment:<em class="required-star">*</em></label><input id="pur_input_5" name="monthlyPayment" type="text" placeholder="$198" style="background-color: white;"/>
        <label>Last 6 of VIN:<em class="required-star">*</em></label><input id="pur_input_5" name="lastVin" type="text" placeholder="123456" style="background-color: white;"/>
        <label>Rebate:</label><input id="pur_input_5" name="rebateInfo" type="text" placeholder="Rebate on Vehicle" style="background-color: white;"/>
        <label>APR:<em class="required-star">*</em></label><input id="pur_input_5" name="aprAmount" type="text" placeholder="ARP on Vehicle" style="background-color: white;"/>
        <label>Term:<em class="required-star">*</em></label><input id="pur_input_5" name="termOfVehicle" type="text" placeholder="Residual Payment on Vehicle" style="background-color: white;"/>
        <label>Other Notes(Rebate Info, Special Details etc):</label> <textarea id="pur_textArea" name="msg" placeholder="Notes" style="background-color: white;" rows=2></textarea>
    </div>

    <!--This div section is for when client select leased as their new opiton....--->
    <div id="leased" style="display:none;">
        <label>Start Date:<em class="required-star">*</em></label><input id="lsd_startDate" name="startDate" type="text" placeholder="01/01/2012" style="background-color: white;"/>
        <label>End Date:<em class="required-star">*</em></label><input id="lsd_endDate" name="endDate" type="text" placeholder="05/07/2015" style="background-color: white;"/>
        <label>Year:<em class="required-star">*</em></label><input id="lsd_vehicleYear" name="yearOfVehicle" type="text" placeholder="Vehicle Year" style="background-color: white;"/>
        <label>Make:<em class="required-star">*</em></label><input id="lsd_make" name="makeOfVehicle" type="text" placeholder="Make" style="background-color: white;"/>
        <label>Model:<em class="required-star">*</em></label><input id="lsd_model" name="modelOfVehicle" type="text" placeholder="Model" style="background-color: white;"/>
        <label>Trim:<em class="required-star">*</em></label><input id="lsd_trim" name="trimOfVehicle" type="text" placeholder="Trim of Vehicle" style="background-color: white;"/>
        <label>Model #:<em class="required-star">*</em></label><input id="lsd_model#" name="modelNumber" type="text" placeholder="14325" style="background-color: white;"/>
        <label>Stock #:<em class="required-star">*</em></label><input id="lsd_stock#" name="stockNumber" type="text" placeholder="1234" style="background-color: white;"/>
        <label>MSRP:<em class="required-star">*</em></label><input id="lsd_msrp" name="msrpNumber" type="text" placeholder="$15,995" style="background-color: white;"/>
        <label>Selling Price:<em class="required-star">*</em></label><input id="lsd_selling_price" name="sellingPrice" type="text" placeholder="12895" style="background-color: white;"/>
        <label>Down Payment:<em class="required-star">*</em></label><input id="lsd_down_payment" name="downPayment" type="text" placeholder="1000" style="background-color: white;"/>
        <label>$XXX/ Monthly Payment:<em class="required-star">*</em></label><input id="lsd_monthly_payment" name="monthlyPayment" type="text" placeholder="198" style="background-color: white;"/>
        <label>Last 6 of VIN:<em class="required-star">*</em></label><input id="lsd_vin" name="lastVin" type="text" placeholder="123456" style="background-color: white;"/>
        <label>Rebate:</label><input id="lsd_rebate" name="rebateInfo" type="text" placeholder="Rebate on Vehicle" style="background-color: white;"/>
        <label>Term:<em class="required-star">*</em></label><input id="lsd_term" name="termOfVehicle" type="text" placeholder="ARP on Vehicle" style="background-color: white;"/>
        <label>Residual Value:<em class="required-star">*</em></label><input id="lsd_residual_value" name="residualValue" type="text" placeholder="Residual Payment on Vehicle" style="background-color: white;"/>
        <label>Miles Per Year:<em class="required-star">*</em></label><input id="lsd_miles_year" name="milesPerYear" type="text" placeholder="Residual Payment on Vehicle" style="background-color: white;"/>
        <label>Other Notes(Rebate Info, Special Details etc):</label> <textarea id="lsd_textArea" name="msg" placeholder="Notes" style="background-color: white;" rows=2></textarea>
    </div>

    <!-- IF users picks USED it will go to this section of the form...-->
    <div id="used" style="display:none;">
        <label>Start Date:<em class="required-star">*</em></label><input id="fin_startDate" name="startDate" type="text" placeholder="01/01/2012" style="background-color: white;"/>
        <label>End Date:<em class="required-star">*</em></label><input id="fin_endDate" name="endDate" type="text" placeholder="05/07/2015" style="background-color: white;"/>
        <label>Year:<em class="required-star">*</em></label><input id="fin_vehicleYear" name="yearOfVehicle" type="text" placeholder="Vehicle Year" style="background-color: white;"/>
        <label>Make:<em class="required-star">*</em></label><input id="fin_make" name="makeOfVehicle" type="text" placeholder="Make" style="background-color: white;"/>
        <label>Model:<em class="required-star">*</em></label><input id="fin_model" name="modelOfVehicle" type="text" placeholder="Model" style="background-color: white;"/>
        <label>Trim:</label><input id="fin_trim" name="trimOfVehicle" type="text" placeholder="Trim of Vehicle" style="background-color: white;"/>
        <label>Stock #:<em class="required-star">*</em></label><input id="fin_input_5" name="stockNumber" type="text" placeholder="1234" style="background-color: white;"/>
        <label>Selling Price:<em class="required-star">*</em></label><input id="fin_input_5" name="sellingPrice" type="text" placeholder="12895" style="background-color: white;"/>
        <label>Down Payment:<em class="required-star">*</em></label><input id="fin_input_5" name="downPayment" type="text" placeholder="1000" style="background-color: white;"/>
        <label>APR:<em class="required-star">*</em></label><input id="fin_input_5" name="aprAmount" type="text" placeholder="ARP on Vehicle" style="background-color: white;"/>
        <label>Term:<em class="required-star">*</em></label><input id="used_term" name="termOfVehicle" type="text" placeholder="" style="background-color: white;"/>
        <label>Other Notes(Rebate Info, Special Details etc):</label><textarea id="fin_textArea" name="msg" placeholder="Notes" style="background-color: white;" rows=2></textarea>
    </div>

        <div class="button-section"><br />
            <input type="submit" name="submit" value="Submit Offer" />
        </div>


</form> 
</body>
  </div>
</div>
</html>
<?php 

//THIS SECTION IS FOR WHEN THE PURCHASED SECTION OF THE FORM IS FILLED OUT..........////        
        if(isset($_POST["submit"]))
        {

            // Checking For Blank Fields....
            if($_POST['dealerName']=="" || $_POST['startDate']=="" || $_POST['endDate']=="" || $_POST['yearOfVehicle']=="" || $_POST['makeOfVehicle']=="" || $_POST['modelOfVehicle']=="" || 
               $_POST['stockNumber']=="" || $_POST['sellingPrice']=="" || $_POST['downPayment']=="" || $_POST['termOfVehicle']=="")
                { 
?>
                    <script type="text/javascript">
                        alert("Please complete the text marked with an *."); //java script telling user to fill in all required fields..
                    </script>
<?php
                }


        //THIS IS THE INFO THAT WILL BE SENT TO INDIVIDUALS IN THE EMAIL SECTION BELOW AS LONG AS ALL THE REQUIRED FIELDS ARE FILLED IN.....//////              
        else{

            $offer = $_POST["offerType"];
            $typeOfPurchase = $_POST["typeOfPurchase"];
            $marketing = $_POST["marketing"];
            $dealerName = $_POST["dealerName"];
            $startDate = $_POST["startDate"];
            $endDate = $_POST["endDate"];
            $vehicleYear = $_POST["yearOfVehicle"];
            $vehicleMake = $_POST["makeOfVehicle"];
            $vehicleModel = $_POST["modelOfVehicle"];
            $vehicleTrim = $_POST["trimOfVehicle"];
            $modelNumber = $_POST["modelNumber"];
            $stockNumber = $_POST["stockNumber"];
            $msrp = $_POST["msrpNumber"];
            $sellingPrice = $_POST["sellingPrice"];
            $downPayment = $_POST["downPayment"];
            $monthlyPayment = $_POST["monthlyPayment"];
            $lastVin = $_POST["lastVin"];
            $aprAmount = $_POST["aprAmount"];
            $vehicleTerm = $_POST["termOfVehicle"];
            $rebate = $_POST["rebateInfo"];
            $residualValue = $_POST["residualValue"];
            $yearPerMiles = $_POST["milesPerYear"];
            $message = $_POST["msg"];


            $message = wordwrap($message, 70);
            $msrpAmount = number_format($msrp, 2, '.', ',');
            $sellPrice = number_format($sellingPrice, 2, '.', ',');
            $dwnPayment = number_format($downPayment, 2, '.', ',');
            $monthPayment = number_format($monthlyPayment, 2, '.', ',');
            $apr = number_format($aprAmount, 2, '.', ',');
            $rebateAmount = number_format($rebate, 2, '.', ',');
            $miles = number_format($yearPerMiles);
            $residual = number_format($residualValue, 2, '.', ',');

            $form_content = 
            "What Type of Offer: $offer
            If your purhcase was new what was your type of purchase: $typeOfPurchase
            Which Marketing Medium: $marketing
            Dealership Name: $dealerName
            Start Date: $startDate
            End Date: $endDate
            Year of Vehicle: $vehicleYear
            Make of Vehicle: $vehicleMake
            Model of Vehicle: $vehicleModel
            Trim of Vehicle: $vehicleTrim
            Model #: $modelNumber 
            Stock #: $stockNumber
            MSRP:$$msrpAmount
            Vehicle Selling Price:$$sellPrice
            Down Payment on Vehicle:$ $dwnPayment
            '$'XXX/ Monthly Payment:$ $monthPayment
            Last 6 of VIN: $lastVin
            Vehicle Rebate:$$rebateAmount
            Residual Value:$$residual
            Vehicle APR:$$apr
            Miles Per Year: $miles
            Other Notes (Rebate Info, Special Details etc): $message";

            $email_subject = "Online Offer Submission Form";

            //THIS IS THE ARRAY THAT WILL HOLD EVERYONE THAT WILL GET THE EMAIL....//////
            $arrEmail = array('Jonathan <jonathan@mywebsite.com>');


                foreach($arrEmail as $key => $email_to)
                mail($email_to, $email_subject, $form_content);

            header('location: http://www.website.com/thank-you-for-contacting-dealer-world/');
        }
        }
?>
我提出的问题如下。如果我在上面的newformprocess.php文件中添加所有验证以确保输入不是空的,我会得到一个警报弹出窗口来填充所有字段,但是,我在添加的每个字段中都填充了它们。第二个问题是,如果我删除所有验证,只使用一个验证,我不会收到弹出式警报,表单会发送,但是,当我收到电子邮件时,大多数表单输入值都是空的,就像用户将其取消为空一样,而这不是事实,因为我是用户,我填写了ever字段。好的,感谢所有帮助你的人,非常感谢你抽出时间

电子邮件的外观 即使我填写了所有字段,这种情况也会发生。正如你所看到的,我得到了一些值,但不是全部,这是用于新购买的下拉列表。当我从下拉列表中选择Lease时,电子邮件的值比下面的要多,但仍然遗漏了一些。当我在下拉列表中选择Used并提交时,我得到了所有的值,所以Used可以正常工作。是另外两个

 What Type of Offer:New
                    Which Marketing Medium: Email
                    Dealership Name: test 1
                    Start Date:
                    End Date:
                    Year of Vehicle:
                    Make of Vehicle:
                    Model of Vehicle:
                    Trim of Vehicle:
                    Model #:
                    Stock #:
                    MSRP:$
                    Vehicle Selling Price:$
                    Down Payment on Vehicle:$
                    '$'XXX/ Monthly Payment:$
                    Last 6 of VIN:
                    Vehicle Rebate:$
                    Residual Value:$
                    Term:
                    Vehicle APR:$
                    Miles Per Year:
                    Other Notes (Rebate Info, Special Details etc):

我需要为任何可能有相同问题的人做的是,当我只使用一个表单,并且在输入元素中有所有具有相同名称class='VALUE'的输入时,它会覆盖其他表单,并在我的电子邮件中显示为空白

所以,对于每一个可能被隐藏或显示的div,我都以它们自己的形式放置它们,这对我来说就像魔术一样。下面是我使用三个下拉选择中的两个所做的预览

<!--This div section is for when client select puchased as their new opiton....--->
<div id="purchased" style="display:none;">
    <form action="" method="post">
        <label>Dealership Name:<em class="required-star">*</em></label><input id="dealerName" name="dealerName" type="text" placeholder="Dealership Name" style="background-color: white;"/>
        <label>Which Marketing Medium?<em class="required-star">*</em></label><select id="market" type="select" name="marketing">
            <option id="pick1" selected="selected" value="">Select One</option>
            <option id="market1" value="Facebook">Facebook</option>
            <option id="market2" value="Website Banner">Website Banner</option>
            <option id="market3" value="Radio">Radio</option>
            <option id="market4" value="TV">TV</option>
            <option id="market5" value="Email">Email</option>
            <option id="market6" value="Direct Mail">Direct Mail</option>
            <option id="market7" value="All Channels">All Channels</option>
        </select>
            <label>Start Date:<em class="required-star">*</em></label><input id="pur_startDate" name="startDate" type="text" placeholder="01/01/2012" style="background-color: white;"/>
            <label>End Date:<em class="required-star">*</em></label><input id="pur_endDate" name="endDate" type="text" placeholder="05/07/2015" style="background-color: white;"/>
            <label>Year:<em class="required-star">*</em></label><input id="pur_vehicleYear" name="yearOfVehicle" type="text" placeholder="Vehicle Year" style="background-color: white;"/>
            <label>Make:<em class="required-star">*</em></label><input id="pur_make" name="makeOfVehicle" type="text" placeholder="Make" style="background-color: white;"/>
            <label>Model:<em class="required-star">*</em></label><input id="pur_model" name="modelOfVehicle" type="text" placeholder="Model" style="background-color: white;"/>
            <label>Trim:<em class="required-star">*</em></label><input id="pur_trim" name="trimOfVehicle" type="text" placeholder="Trim of Vehicle" style="background-color: white;"/>
            <label>Model #:<em class="required-star">*</em></label><input id="pur_input_5" name="modelNumber" type="text" placeholder="14325" style="background-color: white;"/>
            <label>Stock #:<em class="required-star">*</em></label><input id="pur_input_5" name="stockNumber" type="text" placeholder="1234" style="background-color: white;"/>
            <label>MSRP:<em class="required-star">*</em></label><input id="pur_input_5" name="msrpNumber" type="text" placeholder="15995" style="background-color: white;"/>
            <label>Selling Price:<em class="required-star">*</em></label><input id="pur_input_5" name="sellingPrice" type="text" placeholder="12895" style="background-color: white;"/>
            <label>Down Payment:<em class="required-star">*</em></label><input id="pur_input_5" name="downPayment" type="text" placeholder="1000" style="background-color: white;"/>
            <label>$XXX/ Monthly Payment:<em class="required-star">*</em></label><input id="pur_input_5" name="monthlyPayment" type="text" placeholder="$198" style="background-color: white;"/>
            <label>Last 6 of VIN:<em class="required-star">*</em></label><input id="pur_input_5" name="lastVin" type="text" placeholder="123456" style="background-color: white;"/>
            <label>Rebate:</label><input id="pur_input_5" name="rebateInfo" type="text" placeholder="Rebate on Vehicle" style="background-color: white;"/>
            <label>APR:<em class="required-star">*</em></label><input id="pur_input_5" name="aprAmount" type="text" placeholder="ARP on Vehicle" style="background-color: white;"/>
            <label>Term:<em class="required-star">*</em></label><input id="pur_input_5" name="termOfVehicle" type="text" placeholder="Residual Payment on Vehicle" style="background-color: white;"/>
            <label>Other Notes(Rebate Info, Special Details etc):</label> <textarea id="pur_textArea" name="msg" placeholder="Notes" style="background-color: white;" rows=2></textarea>
                <div class="button-section"><br />
                    <input type="submit" name="submit" value="Submit Offer" />
                </div>  
    </form>
</div>

<!--This div section is for when client select leased as their new opiton....--->
<div id="leased" style="display:none;">
   <form action="" method="post">
        <label>Dealership Name:<em class="required-star">*</em></label><input id="dealerName" name="dealerName" type="text" placeholder="Dealership Name" style="background-color: white;"/>
        <label>Which Marketing Medium?<em class="required-star">*</em></label><select id="market" type="select" name="marketing">
            <option id="pick1" selected="selected" value="">Select One</option>
            <option id="market1" value="Facebook">Facebook</option>
            <option id="market2" value="Website Banner">Website Banner</option>
            <option id="market3" value="Radio">Radio</option>
            <option id="market4" value="TV">TV</option>
            <option id="market5" value="Email">Email</option>
            <option id="market6" value="Direct Mail">Direct Mail</option>
            <option id="market7" value="All Channels">All Channels</option>
        </select>
            <label>Start Date:<em class="required-star">*</em></label><input id="lsd_startDate" name="startDate" type="text" placeholder="01/01/2012" style="background-color: white;"/>
            <label>End Date:<em class="required-star">*</em></label><input id="lsd_endDate" name="endDate" type="text" placeholder="05/07/2015" style="background-color: white;"/>
            <label>Year:<em class="required-star">*</em></label><input id="lsd_vehicleYear" name="yearOfVehicle" type="text" placeholder="Vehicle Year" style="background-color: white;"/>
            <label>Make:<em class="required-star">*</em></label><input id="lsd_make" name="makeOfVehicle" type="text" placeholder="Make" style="background-color: white;"/>
            <label>Model:<em class="required-star">*</em></label><input id="lsd_model" name="modelOfVehicle" type="text" placeholder="Model" style="background-color: white;"/>
            <label>Trim:<em class="required-star">*</em></label><input id="lsd_trim" name="trimOfVehicle" type="text" placeholder="Trim of Vehicle" style="background-color: white;"/>
            <label>Model #:<em class="required-star">*</em></label><input id="lsd_model#" name="modelNumber" type="text" placeholder="14325" style="background-color: white;"/>
            <label>Stock #:<em class="required-star">*</em></label><input id="lsd_stock#" name="stockNumber" type="text" placeholder="1234" style="background-color: white;"/>
            <label>MSRP:<em class="required-star">*</em></label><input id="lsd_msrp" name="msrpNumber" type="text" placeholder="$15,995" style="background-color: white;"/>
            <label>Selling Price:<em class="required-star">*</em></label><input id="lsd_selling_price" name="sellingPrice" type="text" placeholder="12895" style="background-color: white;"/>
            <label>Down Payment:<em class="required-star">*</em></label><input id="lsd_down_payment" name="downPayment" type="text" placeholder="1000" style="background-color: white;"/>
            <label>$XXX/ Monthly Payment:<em class="required-star">*</em></label><input id="lsd_monthly_payment" name="monthlyPayment" type="text" placeholder="198" style="background-color: white;"/>
            <label>Last 6 of VIN:<em class="required-star">*</em></label><input id="lsd_vin" name="lastVin" type="text" placeholder="123456" style="background-color: white;"/>
            <label>Rebate:</label><input id="lsd_rebate" name="rebateInfo" type="text" placeholder="Rebate on Vehicle" style="background-color: white;"/>
            <label>Term:<em class="required-star">*</em></label><input id="lsd_term" name="termOfVehicle" type="text" placeholder="ARP on Vehicle" style="background-color: white;"/>
            <label>Residual Value:<em class="required-star">*</em></label><input id="lsd_residual_value" name="residualValue" type="text" placeholder="Residual Payment on Vehicle" style="background-color: white;"/>
            <label>Miles Per Year:<em class="required-star">*</em></label><input id="lsd_miles_year" name="milesPerYear" type="text" placeholder="Residual Payment on Vehicle" style="background-color: white;"/>
            <label>Other Notes(Rebate Info, Special Details etc):</label> <textarea id="lsd_textArea" name="msg" placeholder="Notes" style="background-color: white;" rows=2></textarea>
        <div class="button-section"><br />
            <input type="submit" name="submit" value="Submit Offer" />
        </div>  
    </form> 
</div>

经销商名称:*
哪种营销媒介*
选择一个
脸谱网
网站横幅
无线电
电视
电子邮件
直接邮寄的广告
所有频道
开始日期:*
结束日期:*
年份:*
制作:*
型号:*
修剪:*
模型#:*
股票:*
管理系统更新项目:*
售价:*
首付款:*
XXX美元/月付款:*
VIN的最后6个字符:*
回扣:
四月:*
术语:*
其他注意事项(返利信息、特殊详情等):

经销商名称:* 哪种营销媒介* 选择一个 脸谱网 网站横幅 无线电 电视 电子邮件 直接邮寄的广告 所有频道 开始日期:* 结束日期:* 年份:* 制作:* 型号:* 修剪:* 模型#:* 股票:* 管理系统更新项目:* 售价:* 首付款:* XXX美元/月付款:* VIN的最后6个字符:* 回扣: 术语:* 剩余价值:* 每年英里数:* 其他注意事项(返利信息、特殊详情等):
<!--This div section is for when client select puchased as their new opiton....--->
<div id="purchased" style="display:none;">
    <form action="" method="post">
        <label>Dealership Name:<em class="required-star">*</em></label><input id="dealerName" name="dealerName" type="text" placeholder="Dealership Name" style="background-color: white;"/>
        <label>Which Marketing Medium?<em class="required-star">*</em></label><select id="market" type="select" name="marketing">
            <option id="pick1" selected="selected" value="">Select One</option>
            <option id="market1" value="Facebook">Facebook</option>
            <option id="market2" value="Website Banner">Website Banner</option>
            <option id="market3" value="Radio">Radio</option>
            <option id="market4" value="TV">TV</option>
            <option id="market5" value="Email">Email</option>
            <option id="market6" value="Direct Mail">Direct Mail</option>
            <option id="market7" value="All Channels">All Channels</option>
        </select>
            <label>Start Date:<em class="required-star">*</em></label><input id="pur_startDate" name="startDate" type="text" placeholder="01/01/2012" style="background-color: white;"/>
            <label>End Date:<em class="required-star">*</em></label><input id="pur_endDate" name="endDate" type="text" placeholder="05/07/2015" style="background-color: white;"/>
            <label>Year:<em class="required-star">*</em></label><input id="pur_vehicleYear" name="yearOfVehicle" type="text" placeholder="Vehicle Year" style="background-color: white;"/>
            <label>Make:<em class="required-star">*</em></label><input id="pur_make" name="makeOfVehicle" type="text" placeholder="Make" style="background-color: white;"/>
            <label>Model:<em class="required-star">*</em></label><input id="pur_model" name="modelOfVehicle" type="text" placeholder="Model" style="background-color: white;"/>
            <label>Trim:<em class="required-star">*</em></label><input id="pur_trim" name="trimOfVehicle" type="text" placeholder="Trim of Vehicle" style="background-color: white;"/>
            <label>Model #:<em class="required-star">*</em></label><input id="pur_input_5" name="modelNumber" type="text" placeholder="14325" style="background-color: white;"/>
            <label>Stock #:<em class="required-star">*</em></label><input id="pur_input_5" name="stockNumber" type="text" placeholder="1234" style="background-color: white;"/>
            <label>MSRP:<em class="required-star">*</em></label><input id="pur_input_5" name="msrpNumber" type="text" placeholder="15995" style="background-color: white;"/>
            <label>Selling Price:<em class="required-star">*</em></label><input id="pur_input_5" name="sellingPrice" type="text" placeholder="12895" style="background-color: white;"/>
            <label>Down Payment:<em class="required-star">*</em></label><input id="pur_input_5" name="downPayment" type="text" placeholder="1000" style="background-color: white;"/>
            <label>$XXX/ Monthly Payment:<em class="required-star">*</em></label><input id="pur_input_5" name="monthlyPayment" type="text" placeholder="$198" style="background-color: white;"/>
            <label>Last 6 of VIN:<em class="required-star">*</em></label><input id="pur_input_5" name="lastVin" type="text" placeholder="123456" style="background-color: white;"/>
            <label>Rebate:</label><input id="pur_input_5" name="rebateInfo" type="text" placeholder="Rebate on Vehicle" style="background-color: white;"/>
            <label>APR:<em class="required-star">*</em></label><input id="pur_input_5" name="aprAmount" type="text" placeholder="ARP on Vehicle" style="background-color: white;"/>
            <label>Term:<em class="required-star">*</em></label><input id="pur_input_5" name="termOfVehicle" type="text" placeholder="Residual Payment on Vehicle" style="background-color: white;"/>
            <label>Other Notes(Rebate Info, Special Details etc):</label> <textarea id="pur_textArea" name="msg" placeholder="Notes" style="background-color: white;" rows=2></textarea>
                <div class="button-section"><br />
                    <input type="submit" name="submit" value="Submit Offer" />
                </div>  
    </form>
</div>

<!--This div section is for when client select leased as their new opiton....--->
<div id="leased" style="display:none;">
   <form action="" method="post">
        <label>Dealership Name:<em class="required-star">*</em></label><input id="dealerName" name="dealerName" type="text" placeholder="Dealership Name" style="background-color: white;"/>
        <label>Which Marketing Medium?<em class="required-star">*</em></label><select id="market" type="select" name="marketing">
            <option id="pick1" selected="selected" value="">Select One</option>
            <option id="market1" value="Facebook">Facebook</option>
            <option id="market2" value="Website Banner">Website Banner</option>
            <option id="market3" value="Radio">Radio</option>
            <option id="market4" value="TV">TV</option>
            <option id="market5" value="Email">Email</option>
            <option id="market6" value="Direct Mail">Direct Mail</option>
            <option id="market7" value="All Channels">All Channels</option>
        </select>
            <label>Start Date:<em class="required-star">*</em></label><input id="lsd_startDate" name="startDate" type="text" placeholder="01/01/2012" style="background-color: white;"/>
            <label>End Date:<em class="required-star">*</em></label><input id="lsd_endDate" name="endDate" type="text" placeholder="05/07/2015" style="background-color: white;"/>
            <label>Year:<em class="required-star">*</em></label><input id="lsd_vehicleYear" name="yearOfVehicle" type="text" placeholder="Vehicle Year" style="background-color: white;"/>
            <label>Make:<em class="required-star">*</em></label><input id="lsd_make" name="makeOfVehicle" type="text" placeholder="Make" style="background-color: white;"/>
            <label>Model:<em class="required-star">*</em></label><input id="lsd_model" name="modelOfVehicle" type="text" placeholder="Model" style="background-color: white;"/>
            <label>Trim:<em class="required-star">*</em></label><input id="lsd_trim" name="trimOfVehicle" type="text" placeholder="Trim of Vehicle" style="background-color: white;"/>
            <label>Model #:<em class="required-star">*</em></label><input id="lsd_model#" name="modelNumber" type="text" placeholder="14325" style="background-color: white;"/>
            <label>Stock #:<em class="required-star">*</em></label><input id="lsd_stock#" name="stockNumber" type="text" placeholder="1234" style="background-color: white;"/>
            <label>MSRP:<em class="required-star">*</em></label><input id="lsd_msrp" name="msrpNumber" type="text" placeholder="$15,995" style="background-color: white;"/>
            <label>Selling Price:<em class="required-star">*</em></label><input id="lsd_selling_price" name="sellingPrice" type="text" placeholder="12895" style="background-color: white;"/>
            <label>Down Payment:<em class="required-star">*</em></label><input id="lsd_down_payment" name="downPayment" type="text" placeholder="1000" style="background-color: white;"/>
            <label>$XXX/ Monthly Payment:<em class="required-star">*</em></label><input id="lsd_monthly_payment" name="monthlyPayment" type="text" placeholder="198" style="background-color: white;"/>
            <label>Last 6 of VIN:<em class="required-star">*</em></label><input id="lsd_vin" name="lastVin" type="text" placeholder="123456" style="background-color: white;"/>
            <label>Rebate:</label><input id="lsd_rebate" name="rebateInfo" type="text" placeholder="Rebate on Vehicle" style="background-color: white;"/>
            <label>Term:<em class="required-star">*</em></label><input id="lsd_term" name="termOfVehicle" type="text" placeholder="ARP on Vehicle" style="background-color: white;"/>
            <label>Residual Value:<em class="required-star">*</em></label><input id="lsd_residual_value" name="residualValue" type="text" placeholder="Residual Payment on Vehicle" style="background-color: white;"/>
            <label>Miles Per Year:<em class="required-star">*</em></label><input id="lsd_miles_year" name="milesPerYear" type="text" placeholder="Residual Payment on Vehicle" style="background-color: white;"/>
            <label>Other Notes(Rebate Info, Special Details etc):</label> <textarea id="lsd_textArea" name="msg" placeholder="Notes" style="background-color: white;" rows=2></textarea>
        <div class="button-section"><br />
            <input type="submit" name="submit" value="Submit Offer" />
        </div>  
    </form> 
</div>