Are you looking for more leads? Call (888) 904-9994!
  • (888) 904-9994
  • info@mydealerworld.com
SELL MORE NOW!
toggle menu

DEALER WORLD built from true automotive professionals

We are one vendor who can integrate your Radio, TV, SEO, PPC Management, Social Media, Website performance and Lead generation in a strategic, cohesive marketing plan to make you the envy of all other dealers in your market!

formprocess

<?php

//THIS SECTION IS FOR WHEN THE PURCHASED SECTION OF THE FORM IS FILLED OUT……….////
if(isset($_POST[“purchasedSubmit”]))
{

// Checking For Blank Fields….
if($_POST[‘dealerName’]==””|| $_POST[‘marketing’] ==”” ||$_POST[‘offerType’]==””||$_POST[‘typeOfPurchase’]==””||$_POST[‘startDate’]==””||$_POST[‘endDate’]==””||$_POST[‘yearOfVehicle’]==””||$_POST[‘makeOfVehicle’]==””||
$_POST[‘modelOfVehicle’]==””||$_POST[‘trimOfVehicle’]==””||$_POST[‘modelNumber’]==””||$_POST[‘stockNumber’]==””||$_POST[‘msrpNumber’]==””||$_POST[‘sellingPrice’]==””||$_POST[‘downPayment’]==””||$_POST[‘monthlyPayment’]==””
||$_POST[‘lastVin’]==”” ||$_POST[‘aprAmount’]==”” ||$_POST[‘termOfVehicle’]==””)
{
?>
<script>
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’];
$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, ‘.’, ‘,’)

$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
Vehicle APR: $apr
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 <jonathanvasiliou@mydealerworld.com?>’);

//Danielle <danielleveloza@mydealerworld.com>’, ‘Joe <joewowk@mydealerworld.com>’, ‘Brittany <brittanyspring@mydealerworld.com>’,
//’Mark <markferguson@mydealerworld.com>’, ‘Abby <abbyfrey@mydealerworld.com>’, ‘Ethan <ethanrobinson@mydealerworld.com>’,
// ‘Cody <codykotsopoulos@mydealerworld.com>’, ‘Dan <danfallon@mydealerworld.com>

foreach($arrEmail as $key => $email_to)
mail($email_to, $email_subject, $form_content);
?>
<!–//SCRIPT TO ASK THE USER IF THEY WOULD LIKE TO SUBMIT ANOTHER FORM OR FINISH SUBMITTING FORMS……//////–>
<script>
(confirm(‘Would you like to submit another form? Yes to submit another form or Cancel to finish this form.’)){
<?php header(‘location: http://www.mydealerworld.com/thank-you-for-contacting-dealer-world/’);?>

}else{
<?php header(‘http://www.mydealerworld.com/thank-you-for-contacting-dealer-world/’);?>
}
</script>
<!–END OF SCRIPT–>
<?php
}
}

//THIS SECTION IS FOR WHEN THE LEASED SECTION OF THE FORM IS FILLED OUT……….////
if(isset($_POST[“leasedSubmit”]))
{

// Checking For Blank Fields….
if($_POST[‘dealerName’]==””|| $_POST[‘marketing’] ==”” ||$_POST[‘offerType’]==””||$_POST[‘typeOfPurchase’]==””||$_POST[‘startDate’]==””||$_POST[‘endDate’]==””||$_POST[‘yearOfVehicle’]==””||$_POST[‘makeOfVehicle’]==””||
$_POST[‘modelOfVehicle’]==””||$_POST[‘trimOfVehicle’]==””||$_POST[‘modelNumber’]==””||$_POST[‘stockNumber’]==””||$_POST[‘msrpNumber’]==””||$_POST[‘sellingPrice’]==””||$_POST[‘downPayment’]==””||$_POST[‘monthlyPayment’]==””
||$_POST[‘lastVin’]==””||$_POST[‘termOfVehicle’]==””||$_POST[‘residualValue’]==””||$_POST[‘milesPerYear’]==””)
{
?>
<script>
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’];
$residualValue = $_POST[‘residualValue’];
$vehicleTerm = $_POST[‘termOfVehicle’];
$rebate = $_POST[‘rebateInfo’];
$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, ‘.’, ‘,’)
$residual = number_format($residualValue, 2, ‘.’, ‘,’)
$rebateAmount = number_format($rebate, 2, ‘.’, ‘,’)
$miles = number_format($yearPerMiles, 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: $dwnPayment
‘$’XXX/ Monthly Payment: $monthPayment
Last 6 of VIN: $lastVin
Vehicle Rebate: $rebateAmount
Residual Value: $residual
Term: $vehicleTerm
Miles per Year: $miles
Other Notes (Rebate Info, Special Details etc): $message”;

$email_subject = “Online Offer Submission Form”;

$arrEmail = array(‘Jonathan <jonathanvasiliou@mydealerworld.com?>’);

foreach($arrEmail as $key => $email_to)
mail($email_to, $email_subject, $form_content);
?>
<!–//SCRIPT TO ASK THE USER IF THEY WOULD LIKE TO SUBMIT ANOTHER FORM OR FINISH SUBMITTING FORMS……//////–>
<script>
(confirm(‘Would you like to submit another form? Yes to submit another form or Cancel to finish this form.’)){
<?php header(‘location: http://www.mydealerworld.com/thank-you-for-contacting-dealer-world/’);?>

}else{
<?php header(‘http://www.mydealerworld.com/thank-you-for-contacting-dealer-world/’);?>
}
</script>
<!–END OF SCRIPT–>
<?php
}
}

//THIS SECTION IS FOR WHEN THE USED SECTION OF THE FORM IS FILLED OUT……….////
if(isset($_POST[“usedSubmit”]))
{

// Checking For Blank Fields….
if($_POST[‘dealerName’]==””|| $_POST[‘marketing’] ==”” ||$_POST[‘offerType’]==””||$_POST[‘startDate’]==””||$_POST[‘endDate’]==””||$_POST[‘yearOfVehicle’]==””||$_POST[‘makeOfVehicle’]==””||
$_POST[‘modelOfVehicle’]==””||$_POST[‘stockNumber’]==””||$_POST[‘sellingPrice’]==””||$_POST[‘downPayment’]==””||$_POST[‘aprAmount’]==””||$_POST[‘termOfVehicle’]==””)
{
?>
<script>
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’];
$marketing = $_POST[‘marketing’];
$dealerName = $_POST[‘dealerName’];
$startDate = $_POST[‘startDate’];
$endDate = $_POST[‘endDate’];
$vehicleYear = $_POST[‘yearOfVehicle’];
$vehicleMake = $_POST[‘makeOfVehicle’];
$vehicleModel = $_POST[‘modelOfVehicle’];
$vehicleTrim = $_POST[‘trimOfVehicle’];
$stockNumber = $_POST[‘stockNumber’];
$sellingPrice = $_POST[‘sellingPrice’];
$downPayment = $_POST[‘downPayment’];
$aprAmount = $_POST[‘aprAmount’];
$vehicleTerm = $_POST[‘termOfVehicle’];
$message = $_POST[‘msg’];
$message = wordwrap($message, 70);

$sellPrice = number_format($sellingPrice, 2, ‘.’, ‘,’)
$dwnPayment = number_format($downPayment, 2, ‘.’, ‘,’)
$apr = number_format($aprAmount, 2, ‘.’, ‘,’)
$form_content =
“What Type of Offer: $offer
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
Stock #: $stockNumber
Vehicle Selling Price: $sellPrice
Down Payment: $dwnPayment
Vehicle APR: $apr
Term: $vehicleTerm
Other Notes (Rebate Info, Special Details etc): $message”;

$email_subject = “Online Offer Submission Form”;

$arrEmail = array(‘Jonathan <jonathanvasiliou@mydealerworld.com?>’);

foreach($arrEmail as $key => $email_to)
mail($email_to, $email_subject, $form_content);
?>
<!–//SCRIPT TO ASK THE USER IF THEY WOULD LIKE TO SUBMIT ANOTHER FORM OR FINISH SUBMITTING FORMS……//////–>
<script>
(confirm(‘Would you like to submit another form? Yes to submit another form or Cancel to finish this form.’)){
<?php header(‘location: http://www.mydealerworld.com/thank-you-for-contacting-dealer-world/’);?>

}else{
<?php header(‘http://www.mydealerworld.com/thank-you-for-contacting-dealer-world/’);?>
}
</script>
<!–END OF SCRIPT–>
<?php
}
}
?>

Google partner
Join the Lead Lab!