Welcome to Dream.In.Code
Become an Expert!

Join 149,459 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,119 people online right now. Registration is fast and FREE... Join Now!




Input Masks

 
Reply to this topicStart new topic

Input Masks

fyrestorm
13 Jul, 2002 - 07:58 AM
Post #1

D.I.C Lover
Group Icon

Joined: 4 Apr, 2002
Posts: 3,103



Thanked: 2 times
Dream Kudos: 228
My Contributions
i don't know how many of you are familar with microsoft access, but when you make a field, say a telephone number field, you can give it an input mask that will automatically format it in the form of (___) ___-____ all the user has to do is put in the 10 digits, is there a way to do this for mySQL?
User is offlineProfile CardPM
+Quote Post

klewlis
RE: Input Masks
15 Jul, 2002 - 10:07 AM
Post #2

cur tu me vexas?
*****

Joined: 9 Nov, 2001
Posts: 1,723

Can you just format it in your code before inserting it? Or does it have to be on the db end?
User is offlineProfile CardPM
+Quote Post

fyrestorm
RE: Input Masks
19 Jul, 2002 - 09:07 AM
Post #3

D.I.C Lover
Group Icon

Joined: 4 Apr, 2002
Posts: 3,103



Thanked: 2 times
Dream Kudos: 228
My Contributions
i suppose i could format it, but i was hoping that it could be in the db end like in access

*shrugs*
User is offlineProfile CardPM
+Quote Post

supernova333
RE: Input Masks
19 Jul, 2002 - 09:19 AM
Post #4

D.I.C Addict
****

Joined: 12 Mar, 2002
Posts: 590


My Contributions
I went into access 2000 and made a new field in a table. Named it phone, data type "text", and i just used the input mask wizard to make this input mask:

CODE
!(999) 000-0000;0;_


I haven't used input masks before with web apps, I usually format the string before inserting it, but I guess that should work. Let me know.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 01:46PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month