要求用户在表单中键入特定单词以便提交表单? [英] Require user to type an specific word in form in order to get form submitted?

查看:69
本文介绍了要求用户在表单中键入特定单词以便提交表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为防止垃圾邮件,我需要用户文字才能使用< html>标签在开头,因为该网站是关于博客/ myspace模板,所以系统必须认识到有一个< html>在文本的某处标记。


我认为可以通过条件函数轻松完成,但我不知道从哪里开始。

To prevent spam, I need the user text to have the <html> tag in the beginning, because the site is about blogger/myspace templates, so the system gotta recognize that there is a <html> tag somewhere in the text.

I think it can be easily done with condition function, but I don''t know how where from start.

推荐答案

我真的不明白你的问题,你可以扩展你想要的东西......你试图搜索< html>的出现吗?在提交的字符串中?
i dont realy understand your question can you expanciate on what you want...are you trying to search for the occurence of <html> in the submitted string?


就像:


1 - 用户正在打字,然后他提交表格。

2 - 提交时,用户会收到一条消息:您输入的内容不是myspace / blogger模板,请使用模板。

3 - 知道他是否正在使用是否是模板,系统会在提交的文本中看到是否有< html>标签,但用户不知道。


我认为'有点像'必填字段'函数,但这里没有if(空)函数。
It''s like:

1 - User is typing, then he submits the form.
2 - On submission, user get a message saying: The content you typed is not a myspace/blogger template, please use a template.
3 - To know if he''s using a template or not, the system will see if in the submitted text there was a <html> tag, but the user doesn''t know about.

I think that''s a little like that "Required field" function, but here there is no if (empty) function.


我希望这可以帮助你


如果不让我知道
i hope this should help you

if not let me know

展开 | 选择 | Wrap | 行号


这篇关于要求用户在表单中键入特定单词以便提交表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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