Help needed Please
Posted: Fri Dec 05, 2008 6:20 am
I developed this form that has some inputs ect and also a image upload box, my variables get passed to email , however im unsure what code i should be writing to pass the image to either an email or direct to the server.
Can anyone help please?
This is the html of the form:
<form name="form1" method="post" action="output.php">
<table width="672" cellspacing="0" cellpadding="0">
<tr>
<td><table width="672" border="0" cellspacing="1" bordercolor="#CCCCCC">
<tr bgcolor="#FFFFFF">
<td colspan="2">
<div align="left"><font color="#0000FF" size="2" face="Arial"><b> </b></font></div>
<div align="left"><font color="#006666" size="2" face="Arial">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Full
Name </b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Name" type="text" id="Name" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>
E-mail Address: *</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left">
<input name="email" type="text" id="email" size="40" maxlength="100" class="fieldstyle">
</div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Home
Phone </b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Home_Phone" type="text" id="Home_Phone" value="" size=40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Mobile
Number</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Mobile_Phone" type="text" id="Mobile_Phone" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Mailing
Address </b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Mailing_Address" type="text" id="Mailing_Address" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>City
</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="City" type="text" id="City" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>State
</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="State" type="text" id="State" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Post
Code </b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Post_Code" type="text" id="Post_Code" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>How
much do you pay in site fees per week?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Site_Fee" value="Less than $100" class="fieldstyle">
Below $100
<input type="radio" name="Site_Fee" value="More than $100" class="fieldstyle">
Above $100
<input type="radio" name="Site_Fee" value="Over $150" class="fieldstyle">
Above $150</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>What
is your timeframe for moving?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<select name="Moving_Time_Frame" id="Moving_Time_Frame" class="fieldstyle">
<option value="Within One Month">Within One Month</option>
<option value="1 - 2 Months">1 - 2 Months</option>
<option value="2 - 6 Months">2 - 6 Months</option>
<option value="Within One Year">Within One Year</option>
<option value="Not Sure">Not Sure</option>
</select>
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>How
many bedrooms do you have?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Rooms" value="1" class="fieldstyle">
1
<input type="radio" name="Rooms" value="2" class="fieldstyle">
2
<input type="radio" name="Rooms" value="3 or more" class="fieldstyle">
3 </font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Do
you require covered parking?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Covered_Parking" value="Yes" class="fieldstyle">
Yes
<input type="radio" name="Covered_Parking" value="No" class="fieldstyle">
No</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>If
so, what type?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<select name="What_Type" id="What_Type" class="fieldstyle">
<option value="Select One">Select One</option>
<option value="1 Car">1 Car</option>
<option value="2 Car">2 Car</option>
<option value="Carport">Carport</option>
</select>
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Please
describe the features of your home and park?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<textarea name="Features" cols="40" rows="15" class="fieldstyle" id="Features"></textarea>
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>What
price are you selling for?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Price_Selling" type="text" id="Price_Selling" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Has
the park management approved your sale?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Approved_For_Sale" value="Yes" class="fieldstyle">
Yes
<input type="radio" name="Approved_For_Sale" value="No" class="fieldstyle">
No</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Will
you assign your lease to new owner?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Assign_Lease" value="Yes" class="fieldstyle">
Yes
<input type="radio" name="Assign_Lease" value="No" class="fieldstyle">
No</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Any
other comments regarding your home ?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<textarea name="Comments" cols="40" rows="5" class="fieldstyle" id="Comments"></textarea>
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Upload
image </b></font><input name="upload" type="file" size="20"><font size="1" face="Arial, Helvetica, sans-serif">Maximum File Size: 2megs</font></div></td>
</tr>
</tr>
<td colspan="2" bgcolor="#FFFFFF"> <div align="center"><br>
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table></td>
</tr>
</table></form></td>
</tr>
</table>
</div>
</body>
</html>
This is the php:
<?php
// Receiving variables
@$Name = addslashes($_POST['Name']);
@$email = addslashes($_POST['email']);
@$Home_Phone = addslashes($_POST['Home_Phone']);
@$Mobile_Phone = addslashes($_POST['Mobile_Phone']);
@$Mailing_Address = addslashes($_POST['Mailing_Address']);
@$City = addslashes($_POST['City']);
@$State = addslashes($_POST['State']);
@$Post_Code = addslashes($_POST['Post_Code']);
@$Site_Fee = addslashes($_POST['Site_Fee']);
@$Moving_Time_Frame = addslashes($_POST['Moving_Time_Frame']);
@$Rooms = addslashes($_POST['Rooms']);
@$Covered_Parking = addslashes($_POST['Covered_Parking']);
@$What_Type = addslashes($_POST['What_Type']);
@$Features = addslashes($_POST['Features']);
@$Price_Selling = addslashes($_POST['Price_Selling']);
@$Approved_For_Sale = addslashes($_POST['Approved_For_Sale']);
@$Assign_Lease= addslashes($_POST['Assign_Lease']);
@$Comments = addslashes($_POST['Comments']);
@$upload_Name = $_FILES['upload']['name'];
@$upload_Size = $_FILES['upload']['size'];
@$upload_Temp = $_FILES['upload']['tmp_name'];
@$upload_Mime_Type = $_FILES['upload']['type'];
// Validation
if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
{
header("Location: error.html");
exit;
}
//Sending Email to form owner
# Email to Owner
$pfw_header = "From: $email";
$pfw_subject = "Real Estate Contact Form";
// Change to your email address.........
$pfw_email_to = "webmaster@arpra.org.au";
//......................................
$pfw_message = "Name: $Name\n"
. "email: $email\n"
. "Home_Phone: $Home_Phone\n"
. "Mobile_Phone: $Mobile_Phone\n"
. "Mailing_Address: $Mailing_Address\n"
. "City: $City\n"
. "State: $State\n"
. "Post_Code: $Post_Code\n"
. "Site_Fees: $Site_Fees\n"
. "Moving_Time_Frame: $Moving_Time_Frame\n"
. "Rooms: $Rooms\n"
. "Covered_Parking: $Covered_Parking\n"
. "What_Type: $What_Type\n"
. "Features: $Features\n"
. "Price_Selling: $Price_Selling\n"
. "Approved_For_Sale: $Approved_For_Sale\n"
. "Assign_Lease: $Assign_Lease\n"
. "Comments: $Comments\n"
. "\n";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
//Sending auto respond Email to user
# Email to Owner
// Change to your email address.........
$pfw_header = "From: webmaster@arpra.org.au";
//......................................
$pfw_subject = "Confirmation Auto - Response";
$pfw_message = "Name: $Name\n"
. "email: $email\n"
. "Home_Phone: $Home_Phone\n"
. "Mobile_Phone: $Mobile_Phone\n"
. "Mailing_Address: $Mailing_Address\n"
. "City: $City\n"
. "State: $State\n"
. "Post_Code: $Post_Code\n"
. "Site_Fees: $Site_Fees\n"
. "Moving_Time_Frame: $Moving_Time_Frame\n"
. "Rooms: $Rooms\n"
. "Covered_Parking: $Covered_Parking\n"
. "What_Type: $What_Type\n"
. "Features: $Features\n"
. "Price_Selling: $Price_Selling\n"
. "Approved_For_Sale: $Approved_For_Sale\n"
. "Assign_Lease: $Assign_Lease\n"
. "Comments: $Comments\n"
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: thank_you.html");
?>
Can anyone help please?
This is the html of the form:
<form name="form1" method="post" action="output.php">
<table width="672" cellspacing="0" cellpadding="0">
<tr>
<td><table width="672" border="0" cellspacing="1" bordercolor="#CCCCCC">
<tr bgcolor="#FFFFFF">
<td colspan="2">
<div align="left"><font color="#0000FF" size="2" face="Arial"><b> </b></font></div>
<div align="left"><font color="#006666" size="2" face="Arial">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Full
Name </b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Name" type="text" id="Name" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>
E-mail Address: *</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left">
<input name="email" type="text" id="email" size="40" maxlength="100" class="fieldstyle">
</div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Home
Phone </b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Home_Phone" type="text" id="Home_Phone" value="" size=40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Mobile
Number</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Mobile_Phone" type="text" id="Mobile_Phone" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Mailing
Address </b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Mailing_Address" type="text" id="Mailing_Address" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>City
</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="City" type="text" id="City" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>State
</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="State" type="text" id="State" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Post
Code </b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Post_Code" type="text" id="Post_Code" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>How
much do you pay in site fees per week?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Site_Fee" value="Less than $100" class="fieldstyle">
Below $100
<input type="radio" name="Site_Fee" value="More than $100" class="fieldstyle">
Above $100
<input type="radio" name="Site_Fee" value="Over $150" class="fieldstyle">
Above $150</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>What
is your timeframe for moving?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<select name="Moving_Time_Frame" id="Moving_Time_Frame" class="fieldstyle">
<option value="Within One Month">Within One Month</option>
<option value="1 - 2 Months">1 - 2 Months</option>
<option value="2 - 6 Months">2 - 6 Months</option>
<option value="Within One Year">Within One Year</option>
<option value="Not Sure">Not Sure</option>
</select>
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>How
many bedrooms do you have?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Rooms" value="1" class="fieldstyle">
1
<input type="radio" name="Rooms" value="2" class="fieldstyle">
2
<input type="radio" name="Rooms" value="3 or more" class="fieldstyle">
3 </font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Do
you require covered parking?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Covered_Parking" value="Yes" class="fieldstyle">
Yes
<input type="radio" name="Covered_Parking" value="No" class="fieldstyle">
No</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>If
so, what type?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<select name="What_Type" id="What_Type" class="fieldstyle">
<option value="Select One">Select One</option>
<option value="1 Car">1 Car</option>
<option value="2 Car">2 Car</option>
<option value="Carport">Carport</option>
</select>
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Please
describe the features of your home and park?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<textarea name="Features" cols="40" rows="15" class="fieldstyle" id="Features"></textarea>
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>What
price are you selling for?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input name="Price_Selling" type="text" id="Price_Selling" value="" size="40" maxlength="" class="fieldstyle">
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Has
the park management approved your sale?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Approved_For_Sale" value="Yes" class="fieldstyle">
Yes
<input type="radio" name="Approved_For_Sale" value="No" class="fieldstyle">
No</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Will
you assign your lease to new owner?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<input type="radio" name="Assign_Lease" value="Yes" class="fieldstyle">
Yes
<input type="radio" name="Assign_Lease" value="No" class="fieldstyle">
No</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Any
other comments regarding your home ?</b></font></div></td>
<td width="282" bgcolor="#FFFFFF"> <div align="left"><font color="#006666" size="2" face="Arial">
<textarea name="Comments" cols="40" rows="5" class="fieldstyle" id="Comments"></textarea>
</font></div></td>
</tr>
<tr>
<td width="383" bgcolor="#EAEAFF"> <div align="left"><font color="#0000FF" size="2" face="Arial"><b>Upload
image </b></font><input name="upload" type="file" size="20"><font size="1" face="Arial, Helvetica, sans-serif">Maximum File Size: 2megs</font></div></td>
</tr>
</tr>
<td colspan="2" bgcolor="#FFFFFF"> <div align="center"><br>
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table></td>
</tr>
</table></form></td>
</tr>
</table>
</div>
</body>
</html>
This is the php:
<?php
// Receiving variables
@$Name = addslashes($_POST['Name']);
@$email = addslashes($_POST['email']);
@$Home_Phone = addslashes($_POST['Home_Phone']);
@$Mobile_Phone = addslashes($_POST['Mobile_Phone']);
@$Mailing_Address = addslashes($_POST['Mailing_Address']);
@$City = addslashes($_POST['City']);
@$State = addslashes($_POST['State']);
@$Post_Code = addslashes($_POST['Post_Code']);
@$Site_Fee = addslashes($_POST['Site_Fee']);
@$Moving_Time_Frame = addslashes($_POST['Moving_Time_Frame']);
@$Rooms = addslashes($_POST['Rooms']);
@$Covered_Parking = addslashes($_POST['Covered_Parking']);
@$What_Type = addslashes($_POST['What_Type']);
@$Features = addslashes($_POST['Features']);
@$Price_Selling = addslashes($_POST['Price_Selling']);
@$Approved_For_Sale = addslashes($_POST['Approved_For_Sale']);
@$Assign_Lease= addslashes($_POST['Assign_Lease']);
@$Comments = addslashes($_POST['Comments']);
@$upload_Name = $_FILES['upload']['name'];
@$upload_Size = $_FILES['upload']['size'];
@$upload_Temp = $_FILES['upload']['tmp_name'];
@$upload_Mime_Type = $_FILES['upload']['type'];
// Validation
if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
{
header("Location: error.html");
exit;
}
//Sending Email to form owner
# Email to Owner
$pfw_header = "From: $email";
$pfw_subject = "Real Estate Contact Form";
// Change to your email address.........
$pfw_email_to = "webmaster@arpra.org.au";
//......................................
$pfw_message = "Name: $Name\n"
. "email: $email\n"
. "Home_Phone: $Home_Phone\n"
. "Mobile_Phone: $Mobile_Phone\n"
. "Mailing_Address: $Mailing_Address\n"
. "City: $City\n"
. "State: $State\n"
. "Post_Code: $Post_Code\n"
. "Site_Fees: $Site_Fees\n"
. "Moving_Time_Frame: $Moving_Time_Frame\n"
. "Rooms: $Rooms\n"
. "Covered_Parking: $Covered_Parking\n"
. "What_Type: $What_Type\n"
. "Features: $Features\n"
. "Price_Selling: $Price_Selling\n"
. "Approved_For_Sale: $Approved_For_Sale\n"
. "Assign_Lease: $Assign_Lease\n"
. "Comments: $Comments\n"
. "\n";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
//Sending auto respond Email to user
# Email to Owner
// Change to your email address.........
$pfw_header = "From: webmaster@arpra.org.au";
//......................................
$pfw_subject = "Confirmation Auto - Response";
$pfw_message = "Name: $Name\n"
. "email: $email\n"
. "Home_Phone: $Home_Phone\n"
. "Mobile_Phone: $Mobile_Phone\n"
. "Mailing_Address: $Mailing_Address\n"
. "City: $City\n"
. "State: $State\n"
. "Post_Code: $Post_Code\n"
. "Site_Fees: $Site_Fees\n"
. "Moving_Time_Frame: $Moving_Time_Frame\n"
. "Rooms: $Rooms\n"
. "Covered_Parking: $Covered_Parking\n"
. "What_Type: $What_Type\n"
. "Features: $Features\n"
. "Price_Selling: $Price_Selling\n"
. "Approved_For_Sale: $Approved_For_Sale\n"
. "Assign_Lease: $Assign_Lease\n"
. "Comments: $Comments\n"
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: thank_you.html");
?>