You are here: Warning: mail() expects at most 5 parameters « All PHP « IT news, forums, messages
Warning: mail() expects at most 5 parameters

Posted by PerlBoy on 02/11/06 01:47

Warning: mail() expects at most 5 parameters, 10 given in
/home/content/i/n/f/infowebpages/html/maxipoint/sendmail.php on line 32

Warning: Cannot modify header information - headers already sent by (output
started at /home/content/i/n/f/infowebpages/html/maxipoint/sendmail.php:32)
in /home/content/i/n/f/infowebpages/html/maxipoint/sendmail.php on line 33

what is wrong?
<?
$Domain_name = $_REQUEST['Domain_name'] ;
$Old_department = $_REQUEST['Old_department'] ;
$Old_webspace = $_REQUEST['Old_webspace'] ;
$New_account = $_REQUEST['New_account'] ;
$Payments = $_REQUEST['Payments'] ;
$Note = $_REQUEST['Note'] ;
$email = $_REQUEST['email'] ;


if (!isset($_REQUEST['email'])) {
header( "Location: http://www.doamain.com/index.html" );
}
elseif (empty($email) || empty($Domain_name) || empty($Old_department) ||
empty($Old_webspace) || empty($New_account) || empty($Payments)) {
?>

<html>
<head><title>Error</title></head>
<body>
<h1>Error</h1>
<p>
Oops, it appears you forgot to enter required field(s).
Please press the BACK button in your browser and try again.
</p>
</body>
</html>

<?
}
else {
mail( "mil@hotmail.com", "Datacenter Transfer Form",
$Domain_name, $Old_department, $Old_webspace, $New_account,
$Payments, $Note, $email, "From: $email" );
header( "Location: http://www.domain.com/thankyou.html" );
}
?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация