Question: 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

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!