0

I have code here for a form that submits the data to my email. When I click the send this form button, it submits the email to my address with the titles that I want but not the data that has been put in the boxes. Furthermore, I want to convert some boxes to a drop down menu, how do I go about this? Here is my code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>First Gen Camaro Registry</TITLE>
</HEAD>
<BODY>

<img src="/images/67vin.jpg" width="400" height="180"
alt="1967 VIN Number Plate" 
title="1967 VIN Number Plate" />

<img src="/images/68vin.jpg" width="400" height="180"
alt="1968 VIN Number Plate" 
title="1968 VIN Number Plate" />

<img src="/images/69vin.jpg" width="400" height="180"
alt="1969 VIN Number Plate" 
title="1969 VIN Number Plate" />

<img src="/images/67tag.jpg" width="400" height="180"
alt="1967 LOS Cowl Tag" 
title="1967 LOS Cowl Tag" />

<img src="/images/68tag.jpg" width="400" height="180"
alt="1968 LOS Cowl Tag" 
title="1968 LOS Cowl Tag" />

<img src="/images/69tag.jpg" width="400" height="180"
alt="1969 NOR Cowl Tag" 
title="1969 NOR Cowl Tag" />


<FORM method="POST" action="do_sendform.php">

<P>Your Name:<br>
<INPUT type="text" name="sender_name" size=30>
</p>

<P>Your E-Mail Address:<br>
<INPUT type="text" name="sender_email" size=30>
</p>

<P>City:<br>
<INPUT type="text" name="sender_city" size=30>
</p>

<P>Make:<br>
<INPUT type="text" name="sender_make" size=30>
</p>

<P>Model:<br>
<INPUT type="text" name="sender_model" size=30>
</p>

<P>Year:<br>
<INPUT type="text" name="sender_year" size=30>
</p>

<P>VIN Number:<br>
<INPUT type="text" name="sender_vin" size=30>
</p>

<P>Original Colour:<br>
<INPUT type="text" name="sender_ocolour" size=30>
</p>

<P>Original Trim:<br>
<INPUT type="text" name="sender_otrim" size=30>
</p>

<P>Build Date:<br>
<INPUT type="text" name="sender_bdate" size=30>
</p>

<P>X Code (If 69 Norwood Car):<br>
<INPUT type="text" name="sender_xcode" size=30>
</p>

<P>Option Codes (If 67 Model):<br>
<INPUT type="text" name="sender_ocode" size=30>
</p>

<P>Other Info (What the car is now):<br>
<textarea name="sender_other" cols=50 rows=10></textarea>
</textarea> </P> </br>

<INPUT type="submit" value="Send This Form">

</FORM>

</BODY>
</HTML>

AND

<?php

$msg = "Sender Name:\t$sender_name\n";
$msg .= "Sender E-Mail:\t$sender_email\n";
$msg .= "City:\t$sender_city\n\n";
$msg .= "Make:\t$sender_make\n";
$msg .= "Model:\t$sender_model\n";
$msg .= "Year:\t$sender_year\n\n";
$msg .= "VIN Number:\t$sender_vin\n";
$msg .= "Original Colour:\t$sender_ocolour\n";
$msg .= "Original Trim:\t$sender_otrim\n\n";
$msg .= "Build Date:\t$sender_bdate\n";
$msg .= "X Code:\t$sender_xcode\n";
$msg .= "Option Codes:\t$sender_ocode\n\n";
$msg .= "Other Info:\t$sender_other\n";



$recipient = "admin@camaro.exofire.net";
$subject = "Australian Camaro Info";


$mailheaders = "From: First Gen Camaro Registry <> \n";
$mailheaders .= "Reply-To: $sender_email\n\n";

mail($recipient, $subject, $msg, $mailheaders);

echo "<HTML><HEAD><TITLE>Information Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Thank You, $sender_name</H1>";
echo "<P align=center>Your Camaro information has been sent.</P>";
echo "</BODY></HTML>";

?>
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by JRM
0

The returned form info is in the $_POST[] array.
example:

$msg = "Sender Name:\t$POST[sender_name]\n";
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.