Jump to content

Problem with account creation


ps2k11

Recommended Posts

If a customer creates an account the telephone number is mandatory.

 

However if the customer puts in a blank in the telephone number it's accepted and there is no telephone number when the account is created.

 

Is the a way to fix this problem that only numbers or dashes are allowed and no blanks ?

Link to comment
Share on other sites

I managed to solve the problem by removing the blank from

 

return preg_match('/^[+0-9.()-]*$/', $phoneNumber); in Validate.php

 

If I want the customer to enter numbers only how do I limit the number of characters to 10 ? maximum is 16

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...