2016-03-30 5 views
-4
<?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 = "[email protected]"; 
$subject = "tutorial Request"; 
mail ($to,$subject,$firstname,$lastname,$credicardnumber,$cvv,$month,$year,$streetaddress,$region,$postcode,$country,$city); 


echo "message sent succersfully"; 

?> 

メールセクションに5つ以上の変数を置くとエラーが発生します。 5つ以上の変数をそこに置く方法については助けが必要です。5つ以上の変数をメールセクションに配置するにはどうすればよいですか?

+1

[メール機能マニュアルページを読む](http://php.net/manual/en/function.mail.php) –

+0

コア機能の動作をランダムに決定できません。 –

答えて

0
mail($to,$subject,"$firstname,$lastname,$credicardnumber,$cvv,$month,$year,$streetaddress,$region,$postcode,$country,$city"); 

これは、変数をmail()の "$ message"パラメータに置きます。

+0

ありがとうございました! –

関連する問題