|
Posted by Luigi Donatello Asero on April 29, 2006, 4:03 pm
Please log in for more thread options
> >> >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
Do you mean that if an user should fill in a form like this
https://www.scaiecat-spa-gigi.com/sv/formularet.html
and write a name
which does not exist, this user would get a 404 error?!
--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/sv/faktaomitalien.php
今天二零零六年四月二十九日
星期五六
|