dongmei2351 2012-09-04 19:23
浏览 25
已采纳

需要添加年份,制作,模型到php [关闭]

I have a quote request page and it is handled by php. This is what I have so far..

$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);

If you have any good input let me know. I don't use php that much or else I could probably knock this out pretty easily.

  • 写回答

1条回答 默认 最新

  • dqwh1209 2012-09-04 20:00
    关注

    If you're receiving the content through a contact form using the $_POST array you can do something like this:

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

    Then add it to the rest of your content:

    $e_content. = "Year: " . $year . "Make: " . $make . "Model: " . $model;
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题