-4

我有一个报价请求页面,它由 php 处理。这是我到目前为止所拥有的..

$e_body = "You have been contacted by $name, their additional message is as follows." . PHP_EOL . PHP_EOL;
     $e_content = "\"$comments\"" . PHP_EOL . PHP_EOL;


**---THIS IS WHERE I WANT YEAR, MAKE, AND MODEL TO BE DISPLAYED AND NOT SIDE BY SIDE--- 
     Vehicle Year: using $year
     Vehicle Make: using $make
     Vehicle Model: using $model**

     $e_reply = "You can contact $name via email, $email";
     if ($phone) $e_reply .= " or via phone $phone.";        

     $msg = wordwrap($e_body . $e_content . $e_reply,70);

如果您有任何好的意见,请告诉我。我不怎么使用 php,否则我可能会很容易地将其淘汰。

4

1 回答 1

1

如果您使用$_POST数组通过联系表单接收内容,您可以执行以下操作:

$year = $_POST["year"];
$make = $_POST["make"];
$model = $_POST["model"];

然后将其添加到您的其余内容中:

$e_content. = "Year: " . $year . "Make: " . $make . "Model: " . $model;
于 2012-09-04T20:00:37.970 回答