$val)
{
$key = str_replace('_', ' ', $key);
$message .= $key .' '. $val . $crlf;
}
mail($to, $subject, $message);
// confirm
if ($_POST['SQL_query_result'] = 'ok')
{
mysql_close($con);
header('Location: thanks.html');
exit;
}
else
{
die('Error: ' . mysql_error());
}
|