impload
11-04-2009, 01:12 PM
Hi I have a sign up form and it is linked to various php scripts that send api calls.
The api we use marks this as correct:
Phone number: 8676544544
But this just brings an error:
Phone number: 545-645-4242
Phone number: (545) 445-2454
even if there are spaces in between.
Because of the dashes in between the numbers. How can I have the php script remove the dashes(-) in the phone number or even the spaces if there are any inputed? :cool:
The api we use marks this as correct:
Phone number: 8676544544
But this just brings an error:
Phone number: 545-645-4242
Phone number: (545) 445-2454
even if there are spaces in between.
Because of the dashes in between the numbers. How can I have the php script remove the dashes(-) in the phone number or even the spaces if there are any inputed? :cool: