下载到电子邮件 [英] drop down to e-mail
本文介绍了下载到电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我想用你的普通字段和下拉来制作一个php。
然而在下降中列表我希望有类似的部门,销售,信息,评论等。
如果我从下拉列表中选择销售并按提交,那么它必须转到sale@mydomain.com如果选择了信息,必须去info@mydomain.com
我是怎么做的?
亲切的问候
Louwrens
Hi
I want to make a php from where you got your normal fields and a drop down.
However in the drop list i want to have like departments, sales, info, comment, ect.
If I select sales from the drop down list and press submit then it must go to sale@mydomain.com and if info is seleted it must go to info@mydomain.com
How I do this?
Kind Regards
Louwrens
推荐答案
如果你的下拉列表选择的变量是''to_name''那么类似的东西。我使用switch语句,因为我不知道你有多少不同的收件人。
[php]
If the variable of your drop down list selection is ''to_name'' then something like. I use a switch statement because I don''t know how many different adressees you have.
[php]
sel = strip_tags(trim (
sel = strip_tags(trim(
_POST [''to_name'']));
开关(
_POST[''to_name'']));
switch (
这篇关于下载到电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文