在一个选择/选项选项中设置两个不同的值 [英] Two different values set in one select/option choice

查看:82
本文介绍了在一个选择/选项选项中设置两个不同的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以让访问者为电子邮件选择主题行。


< div>< label for =" subject"> Subject:< / label> < br />

< select class =" form" ID = QUOT受试者QUOT; name =" subject">

< option value =" one"> One< / option>

< option value =" two"> ; 2< / option>

< option value =" three"> Three< / option>

< / select>< / div>


我也可以让他们选择目的地。


< div>< label for =" recipient">发送电子邮件至: < / label>< br />

< select class =" form" ID = QUOT;接受者QUOT; name =" recipient">

< option value =" 1"> Membership< / option>

< option value =" 2"> ;人员< /选项>

<选项值=" 3">网站站长< /选项>

< / select>< / div>


是否可以同时进行这两种操作(不重写脚本,因为我是

无处可擅于搞乱)?换句话说,用户

将选择一个选项,该主题将主题作为主题行,他们是写作的
,并且该选择会自动路由到

该主题的适当收件人?


我可以使用文本中的主题和电子邮件地址作为值,

但是一封电子邮件收件人将收到关于多个主题的电子邮件,因此

设置主题和收件人的某些方法是必要的。所以

网站管理员可能会收到主题为错误报告的电子邮件。或者链接

提交,主题行将用于使电子邮件能够正确排序,但是具有诸如请求新密码之类的主题的电子邮件。或

会员资格问题会转到另一个不同的电子邮件地址。


如果不能在表单中进行此操作,那么存在哪些选项

我没有'甚至没有受理?

I can have a visitor choose a subject line for an email.

<div><label for="subject">Subject:</label><br />
<select class="form" id="subject" name="subject">
<option value="one">One</option>
<option value="two">Two</option>
<option value="three">Three</option>
</select></div>

I can also have them choose a destination.

<div><label for="recipient">Send email to:</label><br />
<select class="form" id="recipient" name="recipient">
<option value="1">Membership</option>
<option value="2">Personnel</option>
<option value="3">Webmaster</option>
</select></div>

Is it possible to do both together (without rewriting the script, as I''m
nowhere near qualified to be messing in that)? In other words, the user
would select an option which gives the topic as a subject line they are
writing about, AND that selection is automatically routed to the
appropriate recipient for that subject?

I could use the subject in the text and the email address as the value,
but one email recipient would be getting email on more than one topic, so
some means of setting both subject and recipient would be necessary. So
the webmaster might get emails with subject "Bug Report" or "Link
Submission", the subject line would serve to enable the emails to be
sorted properly, but emails with subjects like "Request New Password" or
Membership Question" would go to a different email address.

If it''s not possible to rig this in the form itself, what options exist
that I haven''t even entertained?

推荐答案

在文章< op ************** @ news.rcn。 com>, ne*****@spamrcn.com

启发我们......
In article <op**************@news.rcn.com>, ne*****@spamrcn.com
enlightened us with...

是否可以同时进行这两种操作(不重写脚本,因为我没有资格在那里搞乱)?换句话说,用户将选择一个选项,将主题作为他们正在撰写的主题行,并且该选择会自动路由到该主题的适当收件人?

Is it possible to do both together (without rewriting the script, as I''m
nowhere near qualified to be messing in that)? In other words, the user
would select an option which gives the topic as a subject line they are
writing about, AND that selection is automatically routed to the
appropriate recipient for that subject?




当然。

我假设服务器端脚本需要特定值的收件人和

主题?

让主题选择将收件人写入隐藏的输入。


请记住这需要javascript。不是每个人都有javascript

(已启用)。因此,需要注意的是。

最好在

服务器端脚本中做出收件人的决定。


如果你想要javascript解决方案,这很容易。我可以一起为你抛出一个

的例子。

如果你想要服务器端的解决方案,告诉我你用的是哪种语言

使用。 :)

-

-

~kaeli~

针灸是一种非常好的做法。 /> http://www.ipwebdesign.net/wildAtHeart
< a rel =nofollowhref =http://www.ipwebdesign.net/kaelisSpacetarget =_ blank> http://www.ipwebdesign.net/kaelisSpace



Sure.
I assume the server side script expects particular values recipient and
subject?
Have the selection of subject write the recipient to a hidden input.

Keep in mind this requires javascript. Not everyone HAS javascript
(enabled). So, caveat emptor.
It may be preferable to do the decision on who the recipient is in the
server-side script.

If you want the javascript solution, it is pretty easy. I can throw an
example together for you.
If you want the server-side solution, tell me which language you''re
using. :)
--
--
~kaeli~
Acupuncture is a jab well done.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


Neal写道:

我可以使用文本中的主题和电子邮件地址作为
值,但是一个电子邮件收件人将收到超过一个主题的电子邮件,因此有必要设置主题和收件人的一些方法。因此,网站管理员可能会收到主题为错误报告的电子邮件。或链接提交

I could use the subject in the text and the email address as the
value, but one email recipient would be getting email on more than
one topic, so some means of setting both subject and recipient would
be necessary. So the webmaster might get emails with subject "Bug
Report" or "Link Submission"




您是否可以控制电子邮件地址?您可以为每个主题创建不同的

电子邮件地址。 bu********@example.com
li ************* @ example.com 我******** @ example.com


如果一个人应该得到两个类别,将两个地址转发到

相同的收件箱。然后收件人将通过to:字段知道主题。

不像脚本解决方案那么整洁,请注意。


你可能看看在TFMail,来自NMS。它是一种更高级的形式

邮件脚本。如果您可以安装CGI脚本,它可能会为您完成这项工作。


-

Brian(从我的地址中删除无效给我发电子邮件)
http://www.tsmchughs.com/



Do you have control over email addresses? You could create different
email addresses for each topic. bu********@example.com,
li*************@example.com, me********@example.com

If one person should get two categories, forward both addresses to the
same inbox. Then the recipients will know the topic by the to: field.
Not nearly as neat as a script solution, mind you.

You might have a look at TFMail, from NMS. It is a more advanced form
mail script. If you can install CGI scripts, it might do the job for you.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/


2004年2月23日星期一14:59:41 GMT,Brian

< us ***** @ julietremblay.com.invalid>写道:
On Mon, 23 Feb 2004 14:59:41 GMT, Brian
<us*****@julietremblay.com.invalid> wrote:
Neal写道:

我可以使用文本中的主题和电子邮件地址作为
值,但是一个电子邮件收件人将收到超过一个主题的电子邮件,因此有必要设置主题和收件人的一些方法。因此,网站管理员可能会收到主题为错误报告的电子邮件。或链接提交
您是否可以控制电子邮件地址?您可以为每个主题创建不同的电子邮件地址。 bu********@example.com
li ************* @ example.com 我******** @ example.com

如果一个人应该得到两个类别,转发两个地址都在
相同的收件箱中。然后收件人将通过to:字段知道主题。
不像脚本解决方案那么整洁,请注意。

I could use the subject in the text and the email address as the
value, but one email recipient would be getting email on more than
one topic, so some means of setting both subject and recipient would
be necessary. So the webmaster might get emails with subject "Bug
Report" or "Link Submission"
Do you have control over email addresses? You could create different
email addresses for each topic. bu********@example.com,
li*************@example.com, me********@example.com

If one person should get two categories, forward both addresses to the
same inbox. Then the recipients will know the topic by the to: field.
Not nearly as neat as a script solution, mind you.




哦我的,我们的主人允许500个电子邮件地址我唯一的问题是,如果我是单独的电子邮件路线,那么大多数人都有点无能为力b / b
带电脑,这意味着很多动手技术帮助我获得

这些电子邮件地址启动并运行 - 虽然还有转发和

其他选项。一个很好的解决方案,但也是最后的选择。


您可以查看来自NMS的TFMail。它是一种更高级的邮件脚本。如果您可以安装CGI脚本,它可能会为您完成这项工作。



Oh my, our host allows 500 email addresses. My only problem is that if I
go the separate email route, most of the folks involved are a little inept
with computers, which means a LOT of hands-on tech help from me to get
these email addresses up and running - though there are forwarding and
other options there too. An excellent solution, but a last choice.


You might have a look at TFMail, from NMS. It is a more advanced form
mail script. If you can install CGI scripts, it might do the job for you.




感谢您的提示 - 将会看到它。



Thanks for the tip - will look at it.


这篇关于在一个选择/选项选项中设置两个不同的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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