Question: String Manipulation Functions PHP In this assignment you need to create a form to allow the user to enter their full name, telephone number, email
String Manipulation Functions
PHP In this assignment you need to create a form to allow the user to enter their full name, telephone number, email address, and notes. That information will be sent to a PHP script that will process and display that information applying the following rules: 1. The full name should be entered in one text box with the first name in the beginning, at least one space, and the last name second. The PHP script will extract and display the first name and last name, making sure there are no leading or trailing spaces and only the first character of the first name and last name should be in upper case and the rest of the characters are lower case. For example if the user enters tHoMas pApanicolaoU (without the quotes) the PHP script should display: First Name: Thomas Last Name: Papanicolaou 2. The telephone number should be displayed in the PHP script without the dashes, spaces and any parenthesis. For example if the user enters (859) 555 6789 (without the quotes) the PHP script should display: Phone Number: 8595556789 3. The email address should be processed by the PHP script and display the username and domain name separately without spaces and all characters should be in lower case. For example if the user enters Thomas. PAPA @ KCTCS.edu (without the quotes) the PHP script should display: Username: thomas.papa Domain name: kctcs.edu 4. The notes should be entered in a text area. PHP will process the notes by first stripping all HTML and PHP tags that the user may have entered, then replacing each space character with a dash (- ) and extract the first 30 characters. After all the above operations have taken place, convert newline characters to break tags and display the string. Your assignment should have two pages. The first page is straight html (user_input.html) that has a form with the appropriate form elements to collect the user input. The form should then be submitted using the POST method to a PHP script (display_user_info.php) that will process the user input. Screen shot of the user_input.html file (The first page that is straight html) 

lease enter your info Full Name: Telephone Number: Email Address tHoMas pApanicolaoU (859) 555 - 6789 Thomas. PAPA KCTCS.edu This is a test to test
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
