adding edit masks to form fields

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ahartford
Forum Newbie
Posts: 1
Joined: Tue Mar 18, 2008 2:27 pm

adding edit masks to form fields

Post by ahartford »

hello -

i'm trying to create a more user friendly form by adding edits to common fields such as telephone number. Is there a way in PHP to create a single box that includes (nnn)nnn-nnnn preformatted? Additionally, can I code the form to push the cursor automatically to the next form field once the previous one is filled in?

thanks much!
- a
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: adding edit masks to form fields

Post by Zoxive »

This is client side and requires JavaScript.

Nothing to do with PHP, other then maybe doing the formatting there also of instead of just client side.
Post Reply