Is it possible to create input masks using php. If so can an example be given or a link to tut.
Thanks
BobI'm going to slide this over to the PHP Forum as, I think, many of the guys over there could answer this question for you, but may not check this forum out to look for new questions.
input mask? give me an example please.not really sure what you mean here, but i'm guessing you mean something like;
<input type="password" name="password" />In access you can set a input mask for a date, phone number, etc basically when the user tabs to the text box a mask appears say for date 00/00/0000 the users input is formatted this way and only this format is accepted.
hope thats clear enough.
Bobahh very clear now. actually that would be local on the client side. javascript will be the way to go. php doesn't run once it gets done running. you can double check in php once the page gets submitted.Scoutt, i don't really understand this, what does it actually mean/do ?well in access you can make forms and in each form you can have input fields. thses fields will look exactly like this
/ /
and it will allow you to type the numbers but the slashes don't go anywhere. it is like they are part of the input. that is what he is tring to do if I understand him correctly.
as far as I know you can't do that anywhere in html. not even javascript. you can set some input fields to simulate but not have the slashes in it.
but I have been proven wrong before about javascript could actually do soemthing off the wall as this, so I won't be surprised if it does, I just never seen it on any site.ah right, i'm kind of with you now
not really used Access much thoughThanks for the replies, seems like it would more effort than it is worth. Was just curious more than anything.
Bobhello, you can use javascript on the client side to handle real-time field validation routines, however that provides a security hole for the smart ones so it is advised to also validate server side (php as well), then you'll have a solid interface..
(you can even auto-validate the fields when they are done typing, or mid-typing...)
-flforgot to say one thing, you can also use regex to validate the characters, limit, and auto-switch the characters in the fields..
-fl
Thanks
BobI'm going to slide this over to the PHP Forum as, I think, many of the guys over there could answer this question for you, but may not check this forum out to look for new questions.
input mask? give me an example please.not really sure what you mean here, but i'm guessing you mean something like;
<input type="password" name="password" />In access you can set a input mask for a date, phone number, etc basically when the user tabs to the text box a mask appears say for date 00/00/0000 the users input is formatted this way and only this format is accepted.
hope thats clear enough.
Bobahh very clear now. actually that would be local on the client side. javascript will be the way to go. php doesn't run once it gets done running. you can double check in php once the page gets submitted.Scoutt, i don't really understand this, what does it actually mean/do ?well in access you can make forms and in each form you can have input fields. thses fields will look exactly like this
/ /
and it will allow you to type the numbers but the slashes don't go anywhere. it is like they are part of the input. that is what he is tring to do if I understand him correctly.
as far as I know you can't do that anywhere in html. not even javascript. you can set some input fields to simulate but not have the slashes in it.
but I have been proven wrong before about javascript could actually do soemthing off the wall as this, so I won't be surprised if it does, I just never seen it on any site.ah right, i'm kind of with you now
not really used Access much thoughThanks for the replies, seems like it would more effort than it is worth. Was just curious more than anything.
Bobhello, you can use javascript on the client side to handle real-time field validation routines, however that provides a security hole for the smart ones so it is advised to also validate server side (php as well), then you'll have a solid interface..
(you can even auto-validate the fields when they are done typing, or mid-typing...)
-flforgot to say one thing, you can also use regex to validate the characters, limit, and auto-switch the characters in the fields..
-fl