Code: Select all
<?php
mail ($to, $subject, "Name: $name\nE-mail: $email\nMessage: ".$_SESSION['message']." \n\nIP: $REMOTE_ADDR", "From: ".$_SESSION['email']."\n") or print "An unknown error occured.<br>";
?>Code: Select all
<?php
$feature = array($logodesign,$bannerdesign,$graphicdesign,$shoppingcart, $interactivefeatures,$flashanimationandpresentation,
$webhosting,$domainnameregistration,$sitemaintenance, $editingandwritting,$merchantaccount,$customscripts,
$creditcardprocessing,$searchengineoptimization,$searchcapabilitiesonthewebsite,$databaseprogramming);
$message = 'Information about your project\n';
$message .= 'Type of site: '.$_SESSION['type'].'\n';
if ($type_other != ""){
$message .= 'Other: '.$_SESSION['type_other'].'\n';
}
$message .= '<b>Features for the site: </b><br>';
foreach($feature as $feat){
if(isset($feat)){
$message .= '- '.$feat.'<br>';
}
}
if (isset($features_other1)){
$message .= $features_other1.'<br>';
}
$message .= '<b>Estimated Budget:</b> '.$_SESSION['budget'].'<br>';
$message .= '<b>Time until we can start project: </b>'.$_SESSION['time_start'].'<br>';
$message .= '<b>Time Frame: </b>'.$_SESSION['time_frame'].'<br>';
$message .= '<b>Overview: </b>'.$_SESSION['description'].'<br>';
echo "<br>";
echo "<table border="1" width="452" border="1" cellpadding="0" cellspacing="0" bordercolor="9A9A9A" align="center">\n".
"<tr class="porttext" bordercolor="EFEFEF" bgcolor="EFEFEF"><td width="5%"><td width="90%">\n";
echo "<br>".$message."<br>";
echo "<td width="5%">\n";
echo "</td></td></td></tr>\n";
echo "<tr bordercolor="EFEFEF" bgcolor="EFEFEF"><td><td><a class="conflink" href="?confirm=">Click here to confirm</a><br><td> </td> </td> </td></tr>\n";
echo "</table>\n";
$_SESSION['message'] = $message;
?>