Reply to Re: Form field entry directs to diff URLs based on entry?

Your name:

Reply:


Posted by Martin Jay on 04/29/06 22:40

In message <P5P4g.54926$d5.209300@newsb.telia.net>, Luigi Donatello
Asero <jaggillarfotboll@telia.com> writes
>"Martin Jay" <martin@spam-free.org.uk> skrev i meddelandet
>news:6XmSBtGe27UEFw9Z@spam-free.org.uk...
>> In message <1146335278.392940.208650@y43g2000cwc.googlegroups.com>,
>> AtomicBob <robert.westbrook@gmail.com> writes
>> >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.

>> 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?

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация