Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HOW DO I FIX THIS ERROR???? HERE IS MY CURRENT CODE in PHP: Student Info Back To Form! C localhost/MyHomework/Test1/updatelnfo.php Apps G UTC LearnMyMocsNet A

image text in transcribed

HOW DO I FIX THIS ERROR???? HERE IS MY CURRENT CODE in PHP:

Student Info

Back To Form!

if(preg_match("/^[a-zA-Z']+$/", $fName, $output)) { $fName = $output[0]; } else { echo("You've entered bad data!"); } if(preg_match("/^[a-zA-Z']+$/", $lName, $output)) { $lName = $output[0]; } else { echo("You've entered bad data!"); } if(preg_match("/^[a-zA-Z]{3}[0-9]{3}$/", $email, $output)) { $email = $output[0]; } else { echo("You've entered bad data!"); } if(preg_match("/^[0-9.0-9]+$/", $pNumber, $output)) { $pNumber = $output[0]; } else { echo("You've entered bad data!"); }

$output = $lName.":".$fName.":".$email.":".$pNumber; fputs($customerFile, $output); fputs($customerFile, " "); $sortThis = file("customerInfo.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); fclose($customerFile); ?>

C localhost/MyHomework/Test1/updatelnfo.php Apps G UTC LearnMyMocsNet A Regions Bank GINsystem C Chegg Study Guide C Math Que Student Info Back To Form! Notice: Undefined index: fName in C:lxampplhtdocs MyHomework TestllupdateInfo.php on line 16 Notice: Undefined index: IName in C:lxampplhtdocsMyHomeworkTestllupdateInfo.php on line 17 Notice: Undefined index: email in C:lxampphtdocsMyHomeworkTestllupdateInfo.php on line 18 Notice: Undefined index: pNumber in C:lxampphtdocsMyHomework TestllupdateInfo.php on line 19 You've entered bad data!You've entered bad data!You've entered bad data!You've entered bad data

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

=+What is the nature of their impact?

Answered: 1 week ago

Question

=+Is it possible to operate union-free?

Answered: 1 week ago

Question

=+impact member states and MNEs?

Answered: 1 week ago