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 in PHP:
Student Info
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 dataStep 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