Jump to content

Recommended Posts

Can anyone tell me how i can get my database to retrieve full phone numbers without asking my users to type their phone numbers without spaces. The only information that gets to my database is the numbers before the a space or dash.

 

Example:

312-432-5932 or 312 432 5932

 

My database only recieves the \"312\" which are the numbers before the space. I will be very greatfull if someone can help me wit this. Thanx

Link to comment
https://forums.phpfreaks.com/topic/821-phone-number-retrieval/
Share on other sites

Hey,

 

I\'m new at this also, but I would have \"thought\" that on the form you could seperate the area code, phone number etc.. limit the field sizes to the number of digitis required.. and place some javascript to ensure they entered in the required number of digits. That way you could append the data together, and send it off as a single digit?

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/821-phone-number-retrieval/#findComment-2717
Share on other sites

thanx but i already did that but the database is only recieving the last 4 digits of the phone number. which is \"number2\" in your example. the information in \"areacode\" and \"number1\" is lost. Should I change the record values in the database or should i make seperate records for \"area code\", \"number1\", and \"number2\" in the database.

Link to comment
https://forums.phpfreaks.com/topic/821-phone-number-retrieval/#findComment-2740
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.