It's a simple mailable input form. So why does:
<body>
$name = $_REQUEST['name'];
$depart = $_REQUEST['depart'];
$domain = $_REQUEST['domain'];
$phone = $_REQUEST['phone'];
$email = $_REQUEST['email'];
$area = $_REQUEST['area'];
$notes = $_REQUEST['notes'];
$str = $name. " , " .$email. " , " .$depart. " , ". $phone. " , "
.$email. " , " .$area. " , " .$notes;
mail( "XXXYYYY@xyz.edu", "Webmaster Listing", "$str");
?>
[p]Thank you
</body>
work, when this doesn't:
<body>
$name = $_REQUEST['name'];
$depart = $_REQUEST['depart'];
$domain = $_REQUEST['domain'];
$phone = $_REQUEST['phone'];
$email = $_REQUEST['email'];
$area = $_REQUEST['area'];
$notes = $_REQUEST['notes'];
mail( "XXXXYYYY@xyz.edu", "Webmaster Listing", "$name", "$depart", "$domain", "$phone", "$email", "$area", "$notes");
?>
[p]Thank you
</body>
The mail statement will work if the number of variables after "Webmaster Listing" is kept to only one or two, but fails if greater than two; silently, no html output, no email generated (the "Thank You" string, and the switch on this line to square brackets vice the lt/gt pair is due to the html limitations of this forum, not the original working code).
Did the server admin compile in or php.ini some limit on the number of variables in a mail statement? Anyone ever had a similar PHP4 problem?
--
wwill
|