View Single Post
Old 01-27-2013, 08:29 PM   #19
WheelsVT
High School JV
 
Join Date: Sep 2002
Location: GA
Fixed it (thanks Dutch). The regex was marking some valid phone numbers as invalid - if you had a 0 or 1 for the second digit in your area code. It is now fixed in the version linked at the top of the page along with an added error message. You just need to replace options_set.php with the one in the zip file.

OR you can edit options_set.php line 54 and replace it with this line:

if (strlen($_POST['team_phone'])==10 && preg_match("/[2-9]{1}\d{9}/", $_POST['team_phone'])) {

but you wouldn't have the nice error message.


Edit: The link at the top of the page is updated as of 1/28 17:20

Last edited by WheelsVT : 01-28-2013 at 04:20 PM.
WheelsVT is offline   Reply With Quote