Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.00 Issues
 Reformatting Phone numbers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

[email protected]
VP-CART New User

149 Posts

Posted - July 21 2015 :  15:31:16  Show Profile  Reply with Quote
Hello.
I''ve been requested to change the phone number form field be broken up into three fields (area code, exchange, line number) instead of one form field. We''d also like to create a new field for extension. And we''d like to ensure that only numbers are inserted (currently, letters are permitted).

I don''t need to change anything in the db, I just need to make sure I format it back into one variable before it gets inserted into the db.

Is there any documentation on the data flow from form to db or has anyone done this before? I''m hoping it will be a relatively simple process.

Thanks

support
Administrator

4679 Posts

Posted - July 22 2015 :  01:10:21  Show Profile  Visit support's Homepage  Reply with Quote
There is already a function other people share on how to format a phone number value into three parts :
http://www.sitepoint.com/forums/showthread.php?246584-Phone-Number-Manipulation

See the Function FormatPhoneNumber(strNumber) there in the thread.

You can insert the function into vpasp files and make other require code changes.

Thanks
Wilson
VPCart Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00