Page 1 of 1

adding edit masks to form fields

Posted: Tue Mar 18, 2008 2:33 pm
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

Re: adding edit masks to form fields

Posted: Tue Mar 18, 2008 2:39 pm
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.