non-numerical characters in cell phone field of a person's information
4 posters
Page 1 of 1
non-numerical characters in cell phone field of a person's information
http://www.daspecster.com/cam/index.php/person/show/id/1
I saved some wierd non-numerical characters in the cell phone field of this person without any complaint from symfony.
I saved some wierd non-numerical characters in the cell phone field of this person without any complaint from symfony.
Re: non-numerical characters in cell phone field of a person's information
How should we validate this? What if someone wants to put in something like:
A lot of that would be non-numerical. Is that a problem? I think it's more informative than
(135) 461-2233 ext. 14 (Ask for Mary)
A lot of that would be non-numerical. Is that a problem? I think it's more informative than
135461223314
Re: non-numerical characters in cell phone field of a person's information
Right, I think having alphanumeric values is ok in the phone field until we can make good validation code.
tom.schultz- Posts : 63
Join date : 2008-09-11
Validation of Xters in the phone
If a user enters a stream of alphanumeric Xters in a phone number, I think the code should only be concerned with the 10 numeric Xters found in the input stream. It searches for the numeric parts of the entry, not the alphabetic. Thus, this style 555-555-5555 or this style (555) 555-5555 should result into this style 5555555555.
In this way users have freedom of entering in any format.
--KK
In this way users have freedom of entering in any format.
--KK
Kenny- Posts : 14
Join date : 2008-09-29
Re: non-numerical characters in cell phone field of a person's information
Kenny wrote:If a user enters a stream of alphanumeric Xters in a phone number, I think the code should only be concerned with the 10 numeric Xters found in the input stream. It searches for the numeric parts of the entry, not the alphabetic. Thus, this style 555-555-5555 or this style (555) 555-5555 should result into this style 5555555555.
In this way users have freedom of entering in any format.
--KK
But this wouldn't allow for the scenarios I mentioned above where the user needs to specify an extension or to ask for a certain person. Granted, these scenarios would not happen too often (although the extension one is rather common). Also, you would be taking information away from the user's input.
Re: non-numerical characters in cell phone field of a person's information
Thinking 1
While there are variations in which users can enter their data in various forms, it means one can specify the format for the user exactly what the program itself wants, and how it expects to find it, but the first 10 characters can help the program even if the extensions are not possible.
OR
Thinking 2
The first 10 Xters is of paramount interest, this should be noted, and if there exist further Xters appended after the first 10, the program should count them as extension, and act appropriately.
While there are variations in which users can enter their data in various forms, it means one can specify the format for the user exactly what the program itself wants, and how it expects to find it, but the first 10 characters can help the program even if the extensions are not possible.
OR
Thinking 2
The first 10 Xters is of paramount interest, this should be noted, and if there exist further Xters appended after the first 10, the program should count them as extension, and act appropriately.
Kenny- Posts : 14
Join date : 2008-09-29
Re: non-numerical characters in cell phone field of a person's information
I don't think our application really cares what it finds in the telephone field (as long as it's not malicious javascript or something like that). Our application isn't going to be calling anyone. This field is meant for someone to be able to go back to it later and find out how to contact someone else on the telephone.Kenny wrote:Thinking 1
While there are variations in which users can enter their data in various forms, it means one can specify the format for the user exactly what the program itself wants, and how it expects to find it, but the first 10 characters can help the program even if the extensions are not possible.
Why are the first 10 characters so important exactly? What are we going to do with those first 10 characters? What will our program do with them?Kenny wrote:
Thinking 2
The first 10 Xters is of paramount interest, this should be noted, and if there exist further Xters appended after the first 10, the program should count them as extension, and act appropriately.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|