如何在邮件部分放置5个以上的变量?

时间:2016-03-30 20:09:50

标签: php

<?php

$firstname = $_POST['fname'];
$lastname = $_POST['lname'];
$phonenumber = $_POST['phonednumber'];
$vvv = $_POST['vvv'];
$month = $_POST['months'];
$year = $_POST['year'];
$streetaddress = $POST['address'];
$city = $_POST['City'];
$region = $_POST['state'];
$postcode = $_POST['Zip'];
$country = $_POST['country'];


$to = "augustinek20@gmail.com";
$subject = "tutorial Request";
mail    ($to,$subject,$firstname,$lastname,$credicardnumber,$cvv,$month,$year,$streetaddress,$region,$postcode,$country,$city);


echo "message sent succersfully";

?>

当我在邮件部分放入5个以上的变量时,我收到错误。 我需要注意如何在那里放置五个以上的变量。

1 个答案:

答案 0 :(得分:0)

process/3

这会将变量放在&#34; $ message&#34; mail();

的参数