表单字段条目根据条目指向差异URL? [英] Form field entry directs to diff URLs based on entry?

查看:69
本文介绍了表单字段条目根据条目指向差异URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了一个有趣的任务:


创建一个包含单个表单字段的页面,这是一个名字(首先是

和last ),无论情况如何,或者名字和名字之间是否有空格,当用户点击提交按钮时,它需要

他们到一个URL已被分配到该名称。


示例1:


用户输入Tony Tiger在现场并点击提交。


用户然后被发送到tonytiger.exampledomain.com。


示例2:


用户输入johnnywalker在现场和点击提交。


用户然后被发送到johnnywalker.exampledomain.com。


非常感谢任何建议!

I have been given an interesting task:

Make a page with a single form field, which is to take a name (first
and last), and regardless of case or whether there is a space between
the first and last name, when the user hits the submit button it takes
them to a URL that has been assigned to that name.

Example 1:

user enters "Tony Tiger" in the field and hits submit.

user is then sent to tonytiger.exampledomain.com.

Example 2:

user enters "johnnywalker" in the field and hits submit.

user is then sent to johnnywalker.exampledomain.com.

Thanks very much for any advice!

推荐答案

在消息< 11 ********************* *@y43g2000cwc.googlegroups .com> ;,

AtomicBob< ro ************** @ gmail.com>写道
In message <11**********************@y43g2000cwc.googlegroups .com>,
AtomicBob <ro**************@gmail.com> writes
我收到了一个有趣的任务:

创建一个包含单个表单字段的页面,这是一个名字(首先是
和最后一个),并且无论情况如何,或者名字和姓氏之间是否有空格,当用户点击提交按钮时,它们会将其分配给已分配给该名称的URL。
I have been given an interesting task:

Make a page with a single form field, which is to take a name (first
and last), and regardless of case or whether there is a space between
the first and last name, when the user hits the submit button it takes
them to a URL that has been assigned to that name.




我上传了一些东西让你开始:

< http://www.spam-free.org.uk/pages/ login.zip> ;.


这有点基础,你可能想要考虑应该发生什么

如果有人输入的名字不是'不存在。


大概这是推荐类型的应用程序,安全性不是一个问题。

- -

Martin Jay

电话/短信:+44 7740 191877

传真:+44 870 432 5180



I''ve upload something to get your started to:
<http://www.spam-free.org.uk/pages/login.zip>.

It''s a bit basic, and you might want to think about what should happen
if someone enters a name that doesn''t exist.

Presumably this is for a referrals type application and security isn''t
an issue.
--
Martin Jay
Phone/SMS: +44 7740 191877
Fax: +44 870 432 5180




" Martin Jay" <毫安**** @ spam-free.org.uk> skrev i meddelandet

新闻:6X ************** @ spam-free.org.uk ...

"Martin Jay" <ma****@spam-free.org.uk> skrev i meddelandet
news:6X**************@spam-free.org.uk...
在消息< ; 11 ********************** @ y43g2000cwc.googlegroups .com> ;,
AtomicBob< ro ********** ****@gmail.com>写道
In message <11**********************@y43g2000cwc.googlegroups .com>,
AtomicBob <ro**************@gmail.com> writes
我收到了一个有趣的任务:

创建一个包含单个表单字段的页面,这是一个名字(首先是
和最后一个),并且无论情况如何,或者名字和姓氏之间是否有空格,当用户点击提交按钮时,它们会将其分配给已分配给该名称的URL。
I have been given an interesting task:

Make a page with a single form field, which is to take a name (first
and last), and regardless of case or whether there is a space between
the first and last name, when the user hits the submit button it takes
them to a URL that has been assigned to that name.



我上传了一些东西来开始:
< http://www.spam-free.org.uk/pages/login.zip>。

这有点基础,如果有人输入一个不存在的名字,你可能想要考虑应该发生什么。



I''ve upload something to get your started to:
<http://www.spam-free.org.uk/pages/login.zip>.

It''s a bit basic, and you might want to think about what should happen
if someone enters a name that doesn''t exist.



您认为会发生什么?

-

Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/sv/faktaomitalien.php

?????????????????????????????????????????????????????????? ???? o ??? *


What do you think it would happen?
--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/sv/faktaomitalien.php
????¤??o?é??é????*?1′???????o?????1???¥
???????o???*


在消息< P5 ******************* @ newsb.telia.net> ;, Luigi Donatello

Asero< ja ************** @ telia.com>写道
In message <P5*******************@newsb.telia.net>, Luigi Donatello
Asero <ja**************@telia.com> writes
" Martin Jay" <毫安**** @ spam-free.org.uk> skrev i meddelandet
新闻:6X ************** @ spam-free.org.uk ...
"Martin Jay" <ma****@spam-free.org.uk> skrev i meddelandet
news:6X**************@spam-free.org.uk...
消息< 11 ** ********************@y43g2000cwc.googlegroups .com> ;,
AtomicBob< ro ************** @ gmail.com>写道
In message <11**********************@y43g2000cwc.googlegroups .com>,
AtomicBob <ro**************@gmail.com> writes
>我收到了一个有趣的任务:
>
>创建一个包含单个表单字段的页面,这是一个名字(第一个/>>和最后一个),无论大小写是否与
>名字和姓氏之间有空格,当用户点击提交按钮时,它们将
>它们转换为URL已被分配到该名称。
>I have been given an interesting task:
>
>Make a page with a single form field, which is to take a name (first
>and last), and regardless of case or whether there is a space between
>the first and last name, when the user hits the submit button it takes
>them to a URL that has been assigned to that name.


我已经上传了一些东西来开始:
< http://www.spam-free.org.uk/pages/ login.zip> ;.

这有点基础,如果有人输入一个不存在的名字,你可能想要考虑应该发生什么。

I''ve upload something to get your started to:
<http://www.spam-free.org.uk/pages/login.zip>.

It''s a bit basic, and you might want to think about what should happen
if someone enters a name that doesn''t exist.


您认为会发生什么?

What do you think it would happen?




这取决于服务器的配置方式:访客可能会得到一个''服务器不是

发现''错误,404错误,默认页面或其他内容。


可以修改脚本以处理意外名称,或者通过

在数据库中查找名称或根据列表检查它们。或者他们

可以硬编码到其中。 :(

-

Martin Jay



It depends how the server is configured: visitors may get a ''server not
found'' error, a 404 error, a default page, or maybe something else.

The script could be modified to deal with unexpected names, either by
looking names up in a database or checking them against a list. Or they
could be hard-coded into it. :(
--
Martin Jay


这篇关于表单字段条目根据条目指向差异URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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