Problem
Write an HTML document to provide a form that collects names and telephone numbers. The phone numbers must be in the format ddd-ddddddd. Write a PHP script that checks the submitted telephone number to be sure that it conforms to the required format and then returns a response indicating whether the number was correct.