|
-
Apr 14th, 2007, 03:58 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [2005] Insert a character ever 4 characters.
I'm working on my applications serial/license form now and I want to make it easy for the customer to type the license in. The license is seperated by "-" every four characters.
I want to thow some if statements in so they can enter it in with spaces or all one long string. The spaces was easy, but I'm not sure how to insert "-" every 4 characters, except for the last 4 characters.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
Thanks guys.
Last edited by tylerm; Apr 14th, 2007 at 04:08 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|