我在php中的邮件功能面临问题。我必须传递超过5个变量,但它没有那么多 [英] i am facing the problem in mail function in php.I have to pass more than 5 variables but its not taking that much

查看:56
本文介绍了我在php中的邮件功能面临问题。我必须传递超过5个变量,但它没有那么多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<?php
if (isset($_REQUEST['email']))  {

  //Email information
  $admin_email = "tripti.shaddhainfonewdelhi@gmail.com";
  $name = $_REQUEST['name'];
  $email = $_REQUEST['email'];
  $address = $_REQUEST['address'];
  $phone = $_REQUEST['phone'];
  $city = $_REQUEST['city'];
  $date = $_REQUEST['date'];

  //send email
  mail($admin_email, "$name", "$address", "$phone","From:" . $email);

  //Email response
  echo "Thank you for contacting us!";
  }

  //if "email" variable is not filled out, display the form
  else  {
?>
<?php
  }
?>

推荐答案

_REQUEST [' email'])){

// 电子邮件信息
_REQUEST['email'])) { //Email information


admin_email = tripti.shaddhainfonewdelhi@gmail.com;
admin_email = "tripti.shaddhainfonewdelhi@gmail.com";


name =
name =


这篇关于我在php中的邮件功能面临问题。我必须传递超过5个变量,但它没有那么多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆