Repgahroll Posted January 28, 2010 Share Posted January 28, 2010 Hello there. (sorry my english) I have a php form that has several fields named in sequence, for example: phone1, phone2, phone3... this is what i need to get these fields via $_post method. The problem is, the fields should have a mask (the same mask, for example ###-####). And i'm using Javascriptools2 to do this. However, i don't want to use a javascript "for" statement because it slows down some browsers on old systems and the compatibility is bad also. So i wonder if there's another way to do this using some other parameter of the field, like the 'class' or something that can be unique and applied to all fields. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/190143-how-to-mask-fields-by-class-not-by-name-javascriptools2-php-named-fields/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.