Here is a copy of the code for the form/page:
<html>
<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:01 GMT -->
<!-- Mirrored from www.newimagesphoto.com/contact/form.html by HTTrack Website Copier/3.x [XR&CO'2007], Tue, 21 Oct 2008 00:50:19 GMT -->
<head>
<title>New Images Photography: Contact</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="New Images Photography, owned by Glenn G. New, has been Richmond's foremost wedding, corporate, architectural and commercial photography studio since 1975."> <meta name="keywords" content="Wedding Photography Wedding Photographers Professional Photographers Wedding Portraits Bridal Portraits Images Brides Bridal Weddings Corporate Architectural Commercial Richmond Virginia VA Va.">
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="focus()">
<form name="form1" method="post" ACTION="http://www.newimagesphoto.com/contact/form.php">
<INPUT TYPE="hidden" NAME="mailto" VALUE="glennnew@msn.com">
<INPUT TYPE="hidden" NAME="subject" VALUE="Feedback From Contact Form">
<INPUT TYPE="hidden" NAME="htmlfile" VALUE="thankyou.html">
<table border="0" align="center" width="585" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="129"><img src="images_contact/spacer.gif" width="129" height="16"></td>
<td align="left"><img src="images_contact/spacer.gif" width="5" height="1"></td>
<td align="left" width="251">
<img src="images_contact/spacer.gif" width="251" height="16"></td>
<td rowspan="10"><img src="../images/logo_contact.gif"><br>
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/name.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="name" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/street.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="street" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/city.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="city" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/phone_1.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="home_phone" size="18">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/phone_2.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="work_phone" size="18">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/email.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="email" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/date.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<select name="date">
<option selected>--</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select name="select">
<option selected>--</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
<select name="select2">
<option selected>--</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
</select>
</td>
</tr>
<tr valign="top">
<td><img src="images_contact/wedding_location.gif" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left">
<input type="text" name="wedding_location" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/rec_location.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left">
<input type="text" name="reception_location" size="25">
</td>
</tr>
<tr valign="top">
<td width="129" align="left"><img src="images_contact/help.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" rowspan="2">
<textarea name="comments" cols="27" rows="4" wrap="VIRTUAL"></textarea>
</td>
<td rowspan="2"> <img src="images_contact/spacer.gif" width="200" height="28">
<input type="image" src=images_contact/submit.gif border="0" value="Submit" name="image">
<a href="#" onClick="window.top.close(); return false"><img src=images_contact/cancel.gif border="0"></a>
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/spacer.gif" width="1" height="1"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="1"></td>
</tr>
</table>
</form>
</body>
<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:06 GMT -->
<!-- Mirrored from www.newimagesphoto.com/contact/form.html by HTTrack Website Copier/3.x [XR&CO'2007], Tue, 21 Oct 2008 00:50:22 GMT -->
</html>
ASKER
ASKER
ASKER
ASKER
ASKER
<?php
function mail_body($arr_mail)
{
$message = "<html>
<body>
<table border='0' align='center' width='585' cellpadding='0' cellspacing='0'>
<tr valign='top'>
<td width='129'><img src='images_contact/spacer.gif' width='129' height='16'></td>
<td align='left'><img src='images_contact/spacer.gif' width='5' height='1'></td>
<td align='left' width='251'><img src='images_contact/spacer.gif' width='251' height='16'></td>
<td rowspan='10'><img src='../images/logo_contact.gif'><br>
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/name.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['name']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/street.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['street']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/city.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['city']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/phone_1.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['home_phone']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/phone_2.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['work_phone']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/email.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['email']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/date.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['date']."
</td>
</tr>
<tr valign='top'>
<td><img src='images_contact/wedding_location.gif' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left'>".$arr_mail['wedding_location']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/rec_location.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left'>".$arr_mail['reception_location']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/spacer.gif' width='1' height='1'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='1'></td>
</tr>
</table>
</body></html>";
return $message;
}
if(isset($_POST['mailto']) && ($_POST['mailto']) != "")
{
$Name = "www.newimagesphoto.com"; //senders name
$email = "no_reply@newimagesphoto.com"; //senders e-mail adress
$recipient = $_POST['mailto']; //recipient
$arr_mail['name'] = $_POST['name'];
$arr_mail['street'] = $_POST['street'];
$arr_mail['home_phone'] = $_POST['home_phone'];
$arr_mail['work_phone'] = $_POST['work_phone'];
$arr_mail['email'] = $_POST['email'];
$arr_mail['date'] = $_POST['date'];
$arr_mail['wedding_location'] = $_POST['wedding_location'];
$arr_mail['reception_location'] = $_POST['reception_location'];
$arr_mail['comments'] = $_POST['comments'];
$mail_body1 = mail_body($arr_mail); //mail body
$subject = "Feedback From Contact Form"; //subject
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
mail($recipient, $subject, $mail_body, $header); //mail command :)
header("Location: " . $myFile );
}
?>
ASKER
<?php
function mail_body($arr_mail)
{
$message = "<html>
<body>
<table border='0' align='center' width='585' cellpadding='0' cellspacing='0'>
<tr valign='top'>
<td width='129'><img src='images_contact/spacer.gif' width='129' height='16'></td>
<td align='left'><img src='images_contact/spacer.gif' width='5' height='1'></td>
<td align='left' width='251'><img src='images_contact/spacer.gif' width='251' height='16'></td>
<td rowspan='10'><img src='../images/logo_contact.gif'><br>
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/name.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['name']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/street.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['street']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/city.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['city']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/phone_1.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['home_phone']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/phone_2.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['work_phone']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/email.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['email']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/date.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['date']."
</td>
</tr>
<tr valign='top'>
<td><img src='images_contact/wedding_location.gif' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left'>".$arr_mail['wedding_location']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/rec_location.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left'>".$arr_mail['reception_location']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/spacer.gif' width='1' height='1'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='1'></td>
</tr>
</table>
</body></html>";
return $message;
}
//isset($_POST['mailto']) && (
if(isset($_POST['mailto']) && ($_POST['mailto']) != "")
{
$Name = "www.newimagesphoto.com"; //senders name
$email = "no_reply@newimagesphoto.com"; //senders e-mail adress
$recipient = $_POST['mailto']; //recipient
$arr_mail['name'] = $_POST['name'];
$arr_mail['street'] = $_POST['street'];
$arr_mail['home_phone'] = $_POST['home_phone'];
$arr_mail['work_phone'] = $_POST['work_phone'];
$arr_mail['email'] = $_POST['email'];
$arr_mail['date'] = $_POST['date'];
$arr_mail['wedding_location'] = $_POST['wedding_location'];
$arr_mail['reception_location'] = $_POST['reception_location'];
$arr_mail['comments'] = $_POST['comments'];
$mail_body1 = mail_body($arr_mail); //mail body
$subject = "Feedback From Contact Form"; //subject
//echo $mail_body1;
//exit;
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
mail($recipient, $subject, $mail_body, $header); //mail command :)
echo "Mail is sent!";
// header("Location: " . $myFile );
}
?>
<html>
<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:01 GMT -->
<head>
<title>New Images Photography: Contact</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="New Images Photography, owned by Glenn G. New, has been Richmond's foremost wedding, corporate, architectural and commercial photography studio since 1975."> <meta name="keywords" content="Wedding Photography Wedding Photographers Professional Photographers Wedding Portraits Bridal Portraits Images Brides Bridal Weddings Corporate Architectural Commercial Richmond Virginia VA Va.">
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="focus()">
<form name="form1" method="post" ACTION="http://www.newimagesphoto.com/contact/form.php">
<!-- <INPUT TYPE="hidden" NAME="mailto" VALUE="glennnew@msn.com"> -->
<INPUT TYPE="hidden" NAME="mailto" VALUE="glennnew@msn.com">
<!--<INPUT TYPE="hidden" NAME="subject" VALUE="Feedback From Contact Form">-->
<!--<INPUT TYPE="hidden" NAME="htmlfile" VALUE="thankyou.html"> -->
<table border="0" align="center" width="585" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="129"><img src="images_contact/spacer.gif" width="129" height="16"></td>
<td align="left"><img src="images_contact/spacer.gif" width="5" height="1"></td>
<td align="left" width="251">
<img src="images_contact/spacer.gif" width="251" height="16"></td>
<td rowspan="10"><img src="../images/logo_contact.gif"><br>
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/name.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="name" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/street.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="street" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/city.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="city" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/phone_1.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="home_phone" size="18">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/phone_2.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="work_phone" size="18">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/email.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<input type="text" name="email" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/date.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" width="251">
<select name="date">
<option selected>--</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select name="select">
<option selected>--</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
<select name="select2">
<option selected>--</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
</select>
</td>
</tr>
<tr valign="top">
<td><img src="images_contact/wedding_location.gif" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left">
<input type="text" name="wedding_location" size="25">
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/rec_location.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left">
<input type="text" name="reception_location" size="25">
</td>
</tr>
<tr valign="top">
<td width="129" align="left"><img src="images_contact/help.gif" width="129" height="23"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
<td align="left" rowspan="2">
<textarea name="comments" cols="27" rows="4" wrap="VIRTUAL"></textarea>
</td>
<td rowspan="2"> <img src="images_contact/spacer.gif" width="200" height="28">
<a href="#" onClick="this.form.submit();" ><input type="image" src=images_contact/submit.gif border="0" value="Submit" name="image"></a>
<a href="#" onClick="window.top.close(); return false"><img src=images_contact/cancel.gif border="0"></a>
</td>
</tr>
<tr valign="top">
<td width="129"><img src="images_contact/spacer.gif" width="1" height="1"></td>
<td align="left"><img src="images_contact/spacer.gif" width="1" height="1"></td>
</tr>
</table>
</form>
</body>
ASKER
ASKER
echo $mail_body1;
exit;
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
mail($recipient, $subject, $mail_body1, $header); //mail command :)
ASKER
header("Location: " . $myFile );
ASKER
ASKER
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
mail($recipient, $subject, $mail_body1, $headers); //mail command :)
<?php
function mail_body($arr_mail)
{
$message = "<html>
<body>
<table border='0' align='center' width='585' cellpadding='0' cellspacing='0'>
<tr valign='top'>
<td width='129'><img src='images_contact/spacer.gif' width='129' height='16'></td>
<td align='left'><img src='images_contact/spacer.gif' width='5' height='1'></td>
<td align='left' width='251'><img src='images_contact/spacer.gif' width='251' height='16'></td>
<td rowspan='10'><img src='../images/logo_contact.gif'><br>
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/name.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['name']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/street.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['street']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/city.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['city']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/phone_1.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['home_phone']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/phone_2.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['work_phone']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/email.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['email']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/date.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left' width='251'>".$arr_mail['date']."
</td>
</tr>
<tr valign='top'>
<td><img src='images_contact/wedding_location.gif' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left'>".$arr_mail['wedding_location']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/rec_location.gif' width='129' height='23'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='30'></td>
<td align='left'>".$arr_mail['reception_location']."
</td>
</tr>
<tr valign='top'>
<td width='129'><img src='images_contact/spacer.gif' width='1' height='1'></td>
<td align='left'><img src='images_contact/spacer.gif' width='1' height='1'></td>
</tr>
</table>
</body></html>";
return $message;
}
//isset($_POST['mailto']) && (
if(isset($_POST['mailto']) && ($_POST['mailto']) != "")
{
$Name = "www.newimagesphoto.com"; //senders name
$email = "no_reply@newimagesphoto.com"; //senders e-mail adress
$recipient = $_POST['mailto']; //recipient
$arr_mail['name'] = $_POST['name'];
$arr_mail['street'] = $_POST['street'];
$arr_mail['home_phone'] = $_POST['home_phone'];
$arr_mail['work_phone'] = $_POST['work_phone'];
$arr_mail['email'] = $_POST['email'];
$arr_mail['date'] = $_POST['date'];
$arr_mail['wedding_location'] = $_POST['wedding_location'];
$arr_mail['reception_location'] = $_POST['reception_location'];
$arr_mail['comments'] = $_POST['comments'];
$mail_body1 = mail_body($arr_mail); //mail body
$subject = "Feedback From Contact Form"; //subject
//echo $mail_body1;
//exit;
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
mail($recipient, $subject, $mail_body1, $headers); //mail command :)
echo "Mail is sent!";
header("Location: form.html");
}
?>
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
A scripting language is a programming language that supports scripts, programs written for a special run-time environment that automate the execution of tasks that could alternatively be executed one-by-one by a human operator. Scripting languages are often interpreted (rather than compiled). Primitives are usually the elementary tasks or API calls, and the language allows them to be combined into more complex programs. Environments that can be automated through scripting include software applications, web pages within a web browser, the shells of operating systems (OS), embedded systems, as well as numerous games. A scripting language can be viewed as a domain-specific language for a particular environment; in the case of scripting an application, this is also known as an extension language.
TRUSTED BY