我如何才能为电子邮件中的每个变量添加标题。我试过了:
$message .= First Name: $fname;
但不起作用。
$message .= $fname;
$message .= $lname;
$message .= $gname;
$message .= $license;
$message .= $myusername;
$message .= $floor;
$message .= $spot;
you need to concatenate the strings like so
$message .= 'First Name: '. $fname;
you should read the section in the manual on strings