Re: global address collection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 12:56 PM -0500 1/8/08, Nathan Nobbe wrote:
i agree, but rather than using spaces, or allowing them in the input string,
i prefer to have several focused form fields that comprise a larger element.
for example, a credit card number is 4 units of 4 digits.  my preference for
credit card number entry is to have 4 text inputs which take 4 characters each. this is not only convenient from a user perspective in the user interface, but also on the server side. its safe to call trim() on each sequence of characters and concatenate them. if any character is not a digit then immediately the data is known to be invalid (obviously additional checks are important as well [and no more difficult
to perform than if a single form element was used to collect the data]).
ive also seen sites that will use javascript to monitor the character count in each of these smaller form elements and move the cursor to the subsequent form element once the current one is full. i have mixed feelings, that generally boil down to particular implementations on this design decision; sometimes it works, sometimes it doesnt. but thats up to the designer on a case by case basis. in general i urge clients to have several small form fields when reasonable. it reduces confusion for the user, and
headaches for the (server side;)) developer.

-nathan

Ahh yes, an excellent idea.

Thanks,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux