响应表格的好模式 [英] Good Pattern for a response form

查看:46
本文介绍了响应表格的好模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的某个网站上做回复表格,而不是发布

垃圾邮件发送者的电子邮件地址。我从

网站上做了几个例子,但代码看起来很笨拙而且不符合我缺乏经验的眼睛。


此外,在网站我发现你可以通过

查看页面源来获取电子邮件地址。在我看来应该有一种隐藏

的方法,但正如我所说,我不是专家。


任何人都可以推荐一个好的网站用作模式?毋庸置疑,

我希望它尽可能易于维护和符合标准。


--RC

I would like to do a response form on one of my sites instead of posting
an e-mail address for spammers. I''ve taken a couple of examples from
sites, but the code looks clunky and non-conformant to my inexperienced eye.

Also, on the sites I''ve found you can get the e-mail address simply by
viewing the page source. It seems to me there should be a way to hide
that, but as I say I''m hardly an expert.

Can anyone recommend a good site to use as a pattern? Needless to say,
I''d like it to be as easy to maintain and standards compliant as possible.

--RC

推荐答案

2005年3月11日星期五21:55:50 GMT,

Rick Cook< rc **** @ TAKEOUT.mindspring .COM>发表:
On Fri, 11 Mar 2005 21:55:50 GMT,
Rick Cook <rc****@TAKEOUT.mindspring.com> posted:
我想在我的一个网站上做一个回复表,而不是发布一个垃圾邮件发送者的电子邮件地址。我从
网站上采取了几个例子,但代码看起来很笨拙而且不符合我没有经验的眼睛。

此外,在我发现你可以找到的网站上通过查看页面源来获取电子邮件地址。在我看来应该有一种隐藏的方式,但正如我所说,我不是一个专家。


查看Matt Wright表格的NMS替换件。它们允许你

在表单中为收件人指定别名,并且脚本使用

别名来计算要发布到的地址(您配置一个表

脚本中的别名和地址)。

任何人都可以推荐一个好的网站作为模式使用吗?毋庸置疑,
我希望它尽可能易于维护和符合标准。
I would like to do a response form on one of my sites instead of posting
an e-mail address for spammers. I''ve taken a couple of examples from
sites, but the code looks clunky and non-conformant to my inexperienced eye.

Also, on the sites I''ve found you can get the e-mail address simply by
viewing the page source. It seems to me there should be a way to hide
that, but as I say I''m hardly an expert.
Look at the NMS replacements for Matt Wright''s forms. They allow you to
specify an alias for the recipient in the form, and the script uses that
alias to work out which address to post to (you configure a table of
aliases and addresses in the script).
Can anyone recommend a good site to use as a pattern? Needless to say,
I''d like it to be as easy to maintain and standards compliant as possible.




这取决于你想要什么表格。比如回答

问题,写信息等等。但是一旦你写完了表格,你还需要什么样的维护?




构造表单部分的一种有效且合乎逻辑的方法是使用

正确的表单元素,如规范中所述,也许使用

几个额外的格式元素和CSS来整理东西,并避免使用表格使用
。例如:


< form action =" /cgi-bin/FormMail.pl"方法= QUOT;交" accept-charset =" us-ascii,iso-8859-1"


< fieldset>

< legend>你为什么访问这个网站?< / legend>


< div class =" multiplechoice">

< label>< input type ="复选框"命名= QUOT; visit_reason"值= QUOT;无聊">我生活中需要更多的兴奋< / label>< br>

< label>< input type ="复选框"命名= QUOT; visit_reason" value =" Broken PC">试图修复我的电脑< / label>

< / div>

< / fieldset>


< fieldset> ;

< legend>网站是否正常运行?< / legend>


< div class =" multiplechoice">

< label>< input type =" radio"名称= QUOT; site_okay"值= QUOT;是">是< / label>< br>

< label>< input type =" radio"名称= QUOT; site_okay"值= [否">否< / label>< br>

< label>< input type =" radio"名称= QUOT; site_okay" value =不知道>不知道< / label>< br>

< label>< input type =" radio"名称= QUOT; site_okay" value ="无答案选择>没有评论< / label>

< / div>

< / fieldset>


< fieldset>

< legend>您的详细信息< / legend>


< div>

< label for =" name"> ;名称:< / label>< br>

< input type =" text"名称= QUOT;实名" ID = QUOT;名称"大小= QUOT; 50" maxlength =" 70"

< / div>


< div>

< label for = 地址>电子邮件地址:< / label>< br>

< input type =" text"名称= QUOT;电子邮件" ID = QUOT;地址]按钮大小= QUOT; 50" maxlength =" 70"

< / div>

< / fieldset>


< fieldset>

< legend>留言详情< / legend>


< div>

< label for =" subject" ;>主题:< / label>< br>

< input type =" text"命名= QUOT受试者QUOT; ID = QUOT受试者QUOT;大小= QUOT; 50" MAXLENGTH = QUOT; 70" value ="调查表格回复>

< / div>


< div>

< label for =" message">消息:< / label>< br>

< textarea name =" message" ID = QUOT;消息" COLS = QUOT; 50" rows =" 20">< / textarea>

< / div>

< / fieldset>


< fieldset>

< legend>动作< / legend>


< div>

<输入名称= QUOT;接受者QUOT;值= QUOT;网管和QUOT; type =" hidden">

< input type =" hidden"命名= QUOT;重定向" value =" /response.html">

< input type =" submit"值= QUOT;发送和QUOT;>您的意见。

< / div>

< / fieldset>


< / form>


注意:

-----

1.我的multiplechoice CSS课程可以使用边距/字体。

2.我故意让消息区域足够大,可以写一条消息

而不会感到痛苦。


-

如果你坚持通过电子邮件发送给我,请使用回复地址(这是真实的但是

临时)。但请回复小组,就像你应该的那样。


这条消息是在没有病毒的情况下发送的,请自行删除一些文件。



That rather depends on what you want on the form. Such as answering
questions, writing messages, etc. But what sort maintenence do you need
on a form once you''ve written it?

A valid, and logical way, of structuring parts of forms is to use the
proper form elements, as set out in the specifications, perhaps with a
few extra formatting elements and CSS to neaten things up, and avoiding
using tables. For example:

<form action="/cgi-bin/FormMail.pl" method="post" accept-charset="us-ascii, iso-8859-1">

<fieldset>
<legend>Why did you visit this site?</legend>

<div class="multiplechoice">
<label><input type="checkbox" name="visit_reason" value="Boredom"> I needed more excitement in my life</label><br>
<label><input type="checkbox" name="visit_reason" value="Broken PC"> Trying to fix my PC</label>
</div>
</fieldset>

<fieldset>
<legend>Did the site work properly?</legend>

<div class="multiplechoice">
<label><input type="radio" name="site_okay" value="Yes"> Yes</label><br>
<label><input type="radio" name="site_okay" value="No"> No</label><br>
<label><input type="radio" name="site_okay" value="Don''t know"> Don''t know</label><br>
<label><input type="radio" name="site_okay" value="No answer" selected> No comment</label>
</div>
</fieldset>

<fieldset>
<legend>Your details</legend>

<div>
<label for="name">Name:</label><br>
<input type="text" name="realname" id="name" size="50" maxlength="70">
</div>

<div>
<label for="address">E-mail address:</label><br>
<input type="text" name="email" id="address" size="50" maxlength="70">
</div>
</fieldset>

<fieldset>
<legend>Message details</legend>

<div>
<label for="subject">Subject:</label><br>
<input type="text" name="subject" id="subject" size="50" maxlength="70" value="survey form response">
</div>

<div>
<label for="message">Message:</label><br>
<textarea name="message" id="message" cols="50" rows="20"></textarea>
</div>
</fieldset>

<fieldset>
<legend>Action</legend>

<div>
<input name="recipient" value="webmaster" type="hidden">
<input type="hidden" name="redirect" value="/response.html">
<input type="submit" value="Send"> your comments.
</div>
</fieldset>

</form>

Notes:
-----
1. My "multiplechoice" CSS class was there to play with margins/fonts.
2. I''ve deliberately made the message area big enough to write a message
without it being a pain.

--
If you insist on e-mailing me, use the reply-to address (it''s real but
temporary). But please reply to the group, like you''re supposed to.

This message was sent without a virus, please delete some files yourself.


2005年3月11日星期五21:55:50 +0000,Rick Cook写道:
On Fri, 11 Mar 2005 21:55:50 +0000, Rick Cook wrote:
我想在我的一个网站上做一个回复表格发布
垃圾邮件发送者的电子邮件地址。我从
网站上采取了几个例子,但代码看起来很笨拙而且不符合我没有经验的眼睛。

此外,在我发现你可以找到的网站上通过查看页面源来获取电子邮件地址。在我看来应该有一种方法可以隐藏
,但正如我所说,我不是专家。

任何人都可以推荐一个好的网站作为模式使用吗?毋庸置疑,
我希望它尽可能易于维护和符合标准。

- RC
I would like to do a response form on one of my sites instead of posting
an e-mail address for spammers. I''ve taken a couple of examples from
sites, but the code looks clunky and non-conformant to my inexperienced eye.

Also, on the sites I''ve found you can get the e-mail address simply by
viewing the page source. It seems to me there should be a way to hide
that, but as I say I''m hardly an expert.

Can anyone recommend a good site to use as a pattern? Needless to say,
I''d like it to be as easy to maintain and standards compliant as possible.

--RC




一个非常简单的方法,我肯定会被垃圾邮件

收割机解决,就是用他们的

字母代码替换电子邮件地址中的字符。例如,使用:

%,而不是 ca*****@marenger.com 。 63%61%72%6F%6C%79%6E%40%6D%61%72%65%6E%67%65%72%2 E%63%6F%6D。这个

显示,如果在一个链接中使用工作正常,但从理论上说它只是一个很难找到收获脚本的



在我的情况下,我使用垃圾邮件刺客,即使发布了我的电子邮件地址,我也不会在任何一周内收到1或2封垃圾邮件。

Carolyn



A very simple method, that I am sure will be worked around by the spam
harvesters, is to replace the characters in the email address with their
letter codes. for example, rather than ca*****@marenger.com, use:
%63%61%72%6F%6C%79%6E%40%6D%61%72%65%6E%67%65%72%2 E%63%6F%6D. This
displays and if used in a link works fine, but in theory makes it just a
little harder for a harvesting script to find.

In my case, I use spam assassin, and even with my email address posted I
am only receiving 1 or 2 spam messages in any given week.

Carolyn


2005年3月12日星期六,Carolyn Marenger写道:
On Sat, 12 Mar 2005, Carolyn Marenger wrote:
一种非常简单的方法,我肯定会被垃圾邮件收集器解决,就是用他们的
字母代码替换电子邮件地址中的字符。


不要浪费时间专注于错误的问题。


任何允许任意电子邮件地址的响应脚本

从表单提交中指定作为目的地在功能上是一个

垃圾邮件网关,并且会在适当的时候将您的网站列入黑名单。


如果你在服务器端有一个有限的联系地址菜单,

然后可以通过脚本中的昵称来指定它们,而不会显示真实的电子邮件地址。阅读

NMS重新设计的formmail脚本附带的注释。虽然你会发现很多

的主机会拒绝托管任何名称类似于formmail

的东西(垃圾邮件发送者正在永久扫描它们)。

在我的情况下,我使用垃圾邮件刺客,甚至使用我的电子邮件地址
发布我在任何一周内只收到1或2封垃圾邮件。
A very simple method, that I am sure will be worked around by the spam
harvesters, is to replace the characters in the email address with their
letter codes.
Don''t waste time concentrating on the wrong issue.

Any response script which permits an arbitrary email address to be
specified from a form submission as a destination is functionally a
spamming gateway, and will get your site blacklisted in due course.

If you have a limited menu of contact addresses on the server side,
then they can be specified by a nickname from the script, without
revealing the true email address. Read the notes that come with the
NMS re-engineered formmail script. Although you''ll find that many
hosters will refuse to host anything whose name resembles "formmail"
(the spammers are permanently scanning for them).
In my case, I use spam assassin, and even with my email address
posted I am only receiving 1 or 2 spam messages in any given week.



好​​吧,我是助理邮政局长,所以任何骂我的人都可以确保

被整个部门阻止(实际上我只报了一个

到中央邮政局长,这样就会被整个

校园封锁。


欢呼



Well, I''m assistant postmaster, so anyone who spams me is assured of
being blocked from the whole department (in fact I just reported one
to the central postmaster, so that''ll be blocked from the whole
campus).

cheers


这篇关于响应表格的好模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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