Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how? I submitted the entire question. scroll down for additional images. Write a PHP script using regular expressions for validating the test field, name, phone
how? I submitted the entire question. scroll down for additional images.
Write a PHP script using regular expressions for validating the test field, name, phone number, city and state and zip code as shown in the seven screenshots of my browser window. The purpose of the test field is to allow access to a trusted group of users who know the password. In this example we assume that the password is a word containing a specified string (e.g. any word that contains the string "comput", like computer or computation is a legal password). The format of the remaining input is as follows: Name - (Last, First), Phone: (XXX) XXX-XXXX, City and State (City, XX), Zip code (5 digits). The script will accept the inputs from a form (textboxes) as shown by the eight screenshots of my browser window. Dette localhost2000/web/25 Test field computation Enter your name (Last First) Dichew. Christo Enter your phone number in format (123) 456-7890 (5397502477 Enter your city, state Winston Salem, NC Enter your zip code (5 digits) submit computation Dicher, Christo (135) 750-277 Winston Salem NC 27110 Validating test field using different patterns The string as valid Validating name The name is valid Validating phone number The phone number is valid Validating City and State The city and state is valid Validating Zip Code The ip code is valid localhost:80806 Test field: laptop Enter your name (Last, First) Diche Christo Enter your phone number in format (123) 456-7890 838750272 Enter your city, state Winston Slem, NC Testfield laptop Enter your name (Last First) Diche Enter your phone number in format (123) 456-7890 930750-2877 Enter your city, state Winston Salem NC Enter your zip code (5 digita) 27100 laptop Dichev Christo (336) 750.2477 Wamaton Salem, NC 27120 Validating test field using different patterns Invalid string Validating name Invalid name Validating phone number The phone number is valid Validating City and State The city and state is valid Validating Zip Code The zip code is valid Testfield computation Enter your name (Last. Fast) Dichte Enter your phone number in format (123) 456-7890 630 750277 Enter your city. Mate Winston Sale NC Enter your Tip code 65 digita) 27110 submit computation Dichev Christo (06) 790-277 Winston Salem, NC 27120 Validating test field using different patterns Validating name Invalid name Validating phone number The phone number is valid Validating City and State The caty and state is valid Validating Zip Code The zip code as vahid Test field computation Enter your name Last, Fast) Enter your phone number in format (123) 456-7890 7503077 Enter your city, state Wie SNC Ester your zip code (5 dagits) be computation Dicher, Christo 750-2477 Winston Salem, NC 27110 Validating test field using different patterns The string is valid Validating name The name is valid Validating phone number Invalid phone number Validating City and State The caty and state is valid Validating Zip Code Validating phone number The phone number is valid Validating City and State The city and state is valid Valldating Zip Code The zip code is valid Testfield computation Enter your name Last, First) Dicher. Christo Enter your phone number informat (123) 456-7890 750-2477 Enter your city, stiate: Winston Salem, NC Enter your zip code (3 digits) subst 27130 computation Dicher, Christo 750-2477 Winston Salem, NC 27110 Validating test field using different patterns The string a valid Validating name The name is valid Validating phone number Invalid phone number Validating City and State The city and state is valid Validating Zip Code The zip code is valid What to turn in: Submit to Canvas the php/html (e.g., lab9.php/html) file(s). The grading will reflect the completeness and correctness of the submitted script. 1. Write a PHP script using regular expressions for validating the test field, name, phone number, city and state and zip code as shown in the seven screenshots of my browser window. The purpose of the test field is to allow access to a trusted group of users who know the password. In this example we assume that the password is a word containing a specified string (e.g. any word that contains the string "comput, like computer or computation is a legal password). The format of the remaining input is as follows: Name - (Last, First), Phone: (XXX) XXX-XXXX, City and State (City, XX), Zip code (5 digits). The script will accept the inputs from a form (textboxes) as shown by the eight screenshots of my browser window Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started