doxzrb8721 2013-03-12 06:19
浏览 41

无法使用来自php的电子邮件发送多个文本/变量

Hi can anybody help me with sending more things in the email.. because i tried to send more things in the email that i can't seem to send. Also i use ajax to call and send this email but only the ordinary email works and note this kind T_T

HTML CODE:

Email:<input type='text' name='' id=''>
Subject:<input type='text' name='' id=''>
Name of Person:<input type='text' name='' id=''>
Company:<input type='text' name='' id=''>
Contact number:<input type='text' name='' id=''>
Message:<textarea></textarea>

PHP CODE: (Pls note this is note the whole code just the thing that i need to be able to send an email)

  mail("email", $subject,
  $message, "From:" . $email);

I tried to used this in the php code to send the email but to no avail... TRIAL CODE:

$mail = " ".$_REQUEST['Message']."</br> ".$_REQUEST['Contact']."</br> ".$_REQUEST['Name']." </br>  ".$_REQUEST['Company']." ";
  • 写回答

1条回答 默认 最新

  • doucitan2544 2013-03-12 06:23
    关注

    You didn't give any name to the text boxes. So you cannot get the values. Give the appropriate names. Try this,

    Email:<input type='text' name='email' id=''>
    Subject:<input type='text' name='Subject' id=''>
    Name of Person:<input type='text' name='Name' id=''>
    Company:<input type='text' name='Company' id=''>
    Contact number:<input type='text' name='Contact' id=''>
    Message:<textarea name='Message'></textarea>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计